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
What are objects in php?
Which cryptographic extension provide generation and verification of digital signatures?
Are objects passed by value or by reference?
Write a statement to show the joining of multiple comparisons in php?
in PHP for pdf which library used?
What is Gd PHP?
Explain object-oriented methodology in php?
What is csrf verification?
What is the difference between echo, print and printf()?
my english is not too good then what we apply for a php programer post
What is php oops concepts?
What are the correct and the most two common way to start and finish a PHP block of code?
How many escape sequences are recognized in double-quoted strings?
What is str_replace()?
How to block direct directory access in PHP?