Hi,
I try to do a loop for time like this: 9:00 9:30 10:00 10:30 ...
18:30
My problem is when I try to loop it I get .5 for ex: for ($i=9;$i<=18.5;$i=$i+0.5){
Any ideas how to solve it? Thanks, Assaf
One way ... it's a bit of a hack.
$times = array(); for ($i=9; $i<=18; $i++){ $times[] = $i.":00"; $times[] = $i.":30"; }
That will give you an array of the times you need (as strings).
Thanks...