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
Which is variable cost?
What is the use of stripslashes in php?
What is the difference between explode and split?
Which operator is used to combine string values in php?
Can you pass an array into a function?
How to read and display a HTML source from the website url?
How is traits used in php?
Explain about looping in PHP?
How does csrf attack work?
Why is php used for web development?
Why do we use javascript in php?
What is the use of offset in mysql?
Explain the advantages of using PHP?
What are global variables in php?
Which escape sequences can be used in single quoted strings in php?