You can specify a padding character and length with printf www.php.net/printf
---John Holmes... ----- Original Message ----- From: "Martín Agüero" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php