Hi, Thursday, July 25, 2002, 10:44:00 AM, you wrote: v> Hi.
v> I've got this script that needs to take for examle 02 and increase that to
v> 03.
v> but when i run the script $Num++; it changes 03 to 3;
v> is there not a function that adds leading zeros onto a string ?
have a look at the sprintf() function for full info:
sprintf("value = %02d", $value);
--
Best regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

