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 do http requests work?

904


What is the basic function to search files for lines (or other units of text) that contain a pattern.

937


Tell me what is the actually used php version?

965


What is the use of array_search() in php?

887


What is php explain how php works?

912


Why is overriding runtime?

936


Is empty in php?

909


Explain mail function in PHP with syntax?

949


Can we run php on tomcat server?

995


What are php magic methods?

945


Why php 7 is faster?

909


Is laravel better than codeigniter?

979


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

870


Which one is best framework for php?

913


What is difference between echo and print in php?

875