How do you format and output a number with leading zero's?
Answers were Sorted based on User's Feedback
Answer / mahesh
$d = str_pad($d,6,0,0);
|Is This Answer Correct ?||8 Yes||0 No|
Answer / pradeep
The above function will return a number of length 4.
|Is This Answer Correct ?||6 Yes||1 No|
Answer / mahidhar
seperator","string thousands seperator");
|Is This Answer Correct ?||6 Yes||6 No|
What is meant by pear in php? What is the purpose of it?
What are the advantages of object-oriented programming in php?
Is server side a session?
How long is a php session valid?
Which is the correct way to check if a session has already been started ?
When do sessions end?
Tell me what is the default session time in php?
Explain do you use composer? If yes, what benefits have you found in it?
Can we override static method?
How to create an array of a group of items inside an html form?
What are the steps for the payment gateway processing?