Alternatively you could use str_pad() Regards, Lukas Smith [EMAIL PROTECTED] _______________________________ BackendMedia www.backendmedia.com [EMAIL PROTECTED]
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:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 5:07 PM > To: Martín Agüero; [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Help about printing an integer variable > > something like > > printf("%+4d", $int_var); > > Andrey > > ----- Original Message ----- > From: "Martín Agüero" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php