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 long does a php session last for?
What is a static variable in php?
Tell me what are magic methods?
why did u want to leave your past organisation?
What does the unlink() function mean?
What is session expiry?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
What is the php function that removes the last element of the array and returns it?
What is reference variable php?
What is default session time in php?
What is the difference between static and dynamic websites?
How is a session id generated?
What is data structure in php?
How long is a php session valid?
Why we use get in php?