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
Is it worth learning php in 2019?
Is age interval or ordinal data?
What is the use of "ksort" in php?
What is xss in php?
How to call a php function from html button?
What are constructor and destructor in PHP?
Tell me how to retrieve a cookie value?
What is lazy loading in php?
Explain mixed and callback functions?
Is empty in php?
List the different types of print functions available in php?
How can we display information of a variable and readable by a human with php?
Is php secure?
What is difference between core php and framework?
Can you use both this () and super () in a constructor?