Re: Problem with a while loop

From: Date: Thu, 07 Oct 2004 18:34:22 +0000
Subject: Re: Problem with a while loop
Groups: php.general 
Request: Send a blank email to php-general+get-198871@lists.php.net to get a copy of this message
> The following script would look like this when run > 00001 > 2 > 3 > 4 > I needed it to look like this > 00001 > 00002 > 00003 You're going to want to use printf or sprintf to format the numbers. example: printf( "%05d", $i ); this would print out your number, then left fill it will the zeros you want. -Dan Joseph

« previous php.general (#198871) next »