Hi, Saturday, October 11, 2003, 12:44:38 AM, you wrote: DC> is there a function to convert a number that has less than two digits into a DC> number with a leading zero? DC> for instance, to convert a "5" to "05" but to leave a "11" as "11" DC> thanks, DC> Diana
$num = sprintf("%02d",$num); is what you need -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php