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

How long does a php session last for?

1040


What is a static variable in php?

1063


Tell me what are magic methods?

979


why did u want to leave your past organisation?

2066


What does the unlink() function mean?

1088


What is session expiry?

961


What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?

1047


What is the php function that removes the last element of the array and returns it?

976


What is reference variable php?

1032


What is default session time in php?

982


What is the difference between static and dynamic websites?

981


How is a session id generated?

1010


What is data structure in php?

1014


How long is a php session valid?

1017


Why we use get in php?

994