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

Which is not a php magic constant?

1015


What are the final class and final method?

962


What are php filters?

910


What is the functionality of the functions strstr() and stristr()?

925


Which function will you use to create an array?

921


What is strlen function in php?

974


What are headers in php?

908


What is delimiter php?

939


How to find datatype of variable in php?

946


What's the best method for sanitizing user input with php?

871


What are the different ways to login to a remote server?

940


Which function Returns the time of sunrise for a given day / location in PHP.

1039


What the use of var_dump()?

992


Can I write php code in html file?

935


Explain how is it possible to cast types in php?

928