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
Should I use mysqli or pdo?
What is the difference between null and empty?
Why framework is used in php?
What is php variable?
What is a static variable in php?
How to insert a line break in php string?
How variables are passed through arguments?
What are the common uses of php?
How do you clear environment variables?
Write a program in php to check whether a number is prime or not?
Write down the code for save an uploaded file using php?
What are the difference between abstract class and interface in oops?
Code to upload a file in PHP?
Explain what is meant by pear in php?
What is the differences between $a != $B and $a !== $B?