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 do http requests work?
What is the basic function to search files for lines (or other units of text) that contain a pattern.
Tell me what is the actually used php version?
What is the use of array_search() in php?
What is php explain how php works?
Why is overriding runtime?
Is empty in php?
Explain mail function in PHP with syntax?
Can we run php on tomcat server?
What are php magic methods?
Why php 7 is faster?
Is laravel better than codeigniter?
What's the best method for sanitizing user input with php?
Which one is best framework for php?
What is difference between echo and print in php?