Possible Duplicate:
Formatting a number with leading zeros in PHP
I have values between 00 – 29 that need to be selected randomly using PHP.
I tried to use rand() function, but it gives me 0 – 29. not 00, 01, 02, 03 … etc.
how to get 00 – 09 instead of 0 – 9 from PHP randomly? thanks.
or, as mentioned in the comments: