How do you format and output a number with leading zero's?
Answer Posted / mahesh
$d=450;
$d = str_pad($d,6,0,0);
echo $d;
OUT PUT
000450
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?
What are computer variables?
write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.
What is session in c#?
How to find the length of a string?
What is a comment in php?
What is nginx and what is it used for?
What is implode() in php?
how to use http headers inside php? Write the statement through which it can be added?
Explain NULL?
Which of the data type is compound datatype supported by PHP?
How is session id stored in browser?
Tell me what is the use of mysql_real_escape_string() function?
What is inheritance in php with example?
Is overloading possible in php?