Re: Formatting an integer

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Formatting an integer
Groups: php.general 
Request: Send a blank email to php-general+get-144815@lists.php.net to get a copy of this message
http://www.php.net/manual/en/function.printf.php > Hi list, > > I have an integer i would want to print as say 001, 002, ..., 010, etc > .... > Is there a function i can use for that or do i have to count the digits > of > the number and print as many zeroes as i need before the integer ? > > thanks in advance > > >

« previous php.general (#144815) next »