Re: Help about printing an integer variable
| From: | 1LT John W. Holmes | Date: | Mon, 06 Jan 2003 16:02:38 +0000 |
| Subject: | Re: Help about printing an integer variable | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24591@lists.php.net to get a copy of this message | ||
You can specify a padding character and length with printf
www.php.net/printf
---John Holmes...
----- Original Message -----
From: "Martín Agüero" <maguer@palermo.edu.ar>
To: <php-db@lists.php.net>
Sent: Monday, January 06, 2003 9:52 AM
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.