i need numeric values to increase by one so from 02 to 03 to 04, but instead it keeps knocking off the 0 from the front. ive looked at useing number_format() but as far as i can see it just sorts out the number of decimal places. Is there any alternative for formatting numbers so that they keep to 0 in front.
mark
where exactly are u using this ? post ure code snippet
reg kevin
it's just a for loop to display the months from a minimum inputted date to the maximum
FOR($year = $date_min[0]; $year < $date_max[0] + 1; $year++){ echo $year: ; FOR($month = 01; $month < $date_max[1] + 01; $month++){ echo $month / ; }
Hey
$input = "2"; print str_pad($input, 10, "0", STR_PAD_LEFT);
Try that for size...
ucbones
that works a treat thanks alot.