How can I reformat using the sprintf function to add a zero to an integer from 01 to 10:
$dob_day = sprintf(?)
It's in the documentation - always look it up there before asking.
print sprintf("%02d", 1);
Diego
Superb, works a treat thanks.