Re: Formatting an integer
| From: | Rom�n S�nchez | Date: | Tue, 22 Apr 2003 16:14:56 +0000 |
| Subject: | Re: Formatting an integer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144857@lists.php.net to get a copy of this message | ||
> 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 ?
sprintf('%03d', $n)