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
What is the use of isset() in php?
How many keywords are there in php?
How do you put a space in html?
How to check an element is exists in array or not in php?
Is age interval or ordinal?
What is session cookies php?
How to copy a file?
Explain the types of string comparision function in PHP
Is a number php?
Is it possible to destroy a cookie?
How would you declare a function that receives one parameter name hello?
Do you know what are traits?
Tell me what is the difference between ereg_replace() and eregi_replace()?
What is Different between Joomla And Magento?
What is strcmp () in php?