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
Which software is best for php?
How are sessions maintained?
Explain me what is the difference between explode() and split() functions?
How can we set and destroy the cookie in php?
How do you destroy a session?
What is mysqli_fetch_array?
How can MYSQL functions be available with PHP?
Does php 7 support mysql?
What is the difference between core php and php?
Describe session in php.
What is the use of stripslashes in php?
Where is session value stored php?
What is php written in?
How to get the length of string?
write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.