Hello,
Use str_pad, the manual page is available at http://www.php.net/str_pad, a short example would be:
$i = 3; $i = str_pad($i, 5, "0", STR_PAD_LEFT);
This function is described in the PHP manual in the string functions section, the manual is an excellent place to go first when questions such as this arise.
Yes I know, but it's not so easy to find to right function I need there are so many... ;-)
Thanks.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php