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 the purpose of break and continue statement?

759


Is php session id unique?

751


How do you pass a variable by value in php?

752


What is singleton design pattern in php?

767


Is rent a variable cost?

759


What is the difference between php and cakephp?

758


Which is incorrect with respect to separating php code and html?

763


What is form action php?

795


What is the main difference between require() and require_once()?

794


What is a definer in mysql?

762


Is php is dying?

708


A process can run only in the background. State Whether True or False?

857


What is the scope of a variable defined outside a function?

766


How can you upload a file using php?

791


What is the use of mvc in php?

760