RE: [PHP-DB] Help about printing an integer variable
| From: | Lukas Smith | Date: | Mon, 06 Jan 2003 16:07:27 +0000 |
| Subject: | RE: [PHP-DB] Help about printing an integer variable | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24593@lists.php.net to get a copy of this message | ||
Alternatively you could use str_pad()
Regards,
Lukas Smith
smith@backendmedia.com
_______________________________
BackendMedia
www.backendmedia.com
berlin@backendmedia.com
Linn Zwoch Smith GbR
Reuchlinstr. 10-11 Raum 4.1.6
D-10553 Berlin (Tiergarten)
Tel +49 30 83 22 50 00
Fax +49 30 83 22 50 07
> -----Original Message-----
> From: Andrey Hristov [mailto:andrey@webgate.bg]
> Sent: Monday, January 06, 2003 5:07 PM
> To: Martín Agüero; php-db@lists.php.net
> Subject: Re: [PHP-DB] Help about printing an integer variable
>
> something like
>
> printf("%+4d", $int_var);
>
> Andrey
>
> ----- Original Message -----
> From: "Martín Agüero" <maguer@palermo.edu.ar>
> To: <php-db@lists.php.net>
> Sent: Monday, January 06, 2003 4:52 PM
> Subject: [PHP-DB] Help about printing an integer variable
>
>
> I need to print an integer varible using this format '0000', I mean it
> always have to show four digits. How can I do that?
>
> Thanks,
>
> Martin.
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php