Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you format and output a number with leading zero's?

Answer Posted / pradeep

Using sprinf("%04d",$num);

The above function will return a number of length 4.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the output of the ucwords function in this example?

1080


Explain me what is the use of 'print' in php?

1000


Explain about PHP filter and why it should be used?

987


Tell me what does the initials of php stand for?

1015


How to get no of arguments passed to a PHP Function?

1010


How is session id stored in browser?

1063


What is meant by variable variables in php?

1095


What is Type hinting in PHP?

1203


Does browser understand php?

990


Explain me what is the goto statement useful for?

873


Is empty in excel?

1042


How can we enable error reporting in php?

1090


What is difference between rest api and restful api?

1052


What are php functions?

1136


Tell me what should we do to be able to export data into an excel file?

997