Minute 5 to 05?
Posted: Sun Jul 30, 2006 9:21 pm
How to do that? cast it to string, but how to do it?
$time_minute_list_value = array();
for ($m = 0 ; $m <= 55 ; $m += 5) {
array_push($time_minute_list_value, $m);
}
I get this ( [0] => 0 [1] => 5 [2] => 10 [3] => 15 [4] => 20 [5] => 25 [6] => 30 [7] => 35 [8] => 40 [9] => 45 [10] => 50 [11] => 55 ), but how can I change the value for 0 and 5 to 00 and 05?
Thank you.
$time_minute_list_value = array();
for ($m = 0 ; $m <= 55 ; $m += 5) {
array_push($time_minute_list_value, $m);
}
I get this ( [0] => 0 [1] => 5 [2] => 10 [3] => 15 [4] => 20 [5] => 25 [6] => 30 [7] => 35 [8] => 40 [9] => 45 [10] => 50 [11] => 55 ), but how can I change the value for 0 and 5 to 00 and 05?
Thank you.