How do you format and output a number with leading zero's?

Answer Posted / mahidhar

syntax:number_format("number","decimal places","string
seperator","string thousands seperator");

Example:number_format('1000',2,'.','')

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is crypt () in php?

498


What are differences between PECL and PEAR?

518


How to check curl is enabled or not in PHP

637


Is python better than php?

509


Tell me how can we automatically escape incoming data?

506






What is the purpose of the '.frm' file extension? What do thes file contain?

514


Why php script is not running in browser?

567


Is strcmp case sensitive?

521


What is PHP's configuration file called?

570


What is php date function?

577


How is it possible to parse a configuration file?

512


So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

556


Explain about the data types in PHP?

561


How do you count numbers in php?

507


what are the differences between php and perl

1611