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
What is the purpose of break and continue statement?
Is php session id unique?
How do you pass a variable by value in php?
What is singleton design pattern in php?
Is rent a variable cost?
What is the difference between php and cakephp?
Which is incorrect with respect to separating php code and html?
What is form action php?
What is the main difference between require() and require_once()?
What is a definer in mysql?
Is php is dying?
A process can run only in the background. State Whether True or False?
What is the scope of a variable defined outside a function?
How can you upload a file using php?
What is the use of mvc in php?