How do you format and output a number with leading zero's?
Answer Posted / pradeep
Using sprinf("%04d",$num);
The above function will return a number of length 4.
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How to use http headers inside php?
Tell me how can we determine whether a variable is set?
How to do single and multi line comment in php?
What is framework in php for beginners?
What is different types of visibility?
What are the popular frameworks in php?
Can I run php without xampp?
Php being an open source is there any support available to it?
What is config file in php?
What is the meaning of a persistent cookie?
What happens when submit button is clicked?
Can we use include ("xyz.php") two times in a php page "index.php"?
Why php language is used?
What is the empty function?
Is php still in demand?