I know i can do a normal loop with whole integers like this
for($i=0;$i<10;$i++)
{
echo $i;
}
Problem:
I want to loop through a loop not with whole numbers but with floats times ( 45 minutes ). I want the results to be like this:
0.45
1.30
2.15
3.00
3.45
...
Is there any helper function in PHP to achieve that?
Reading the comments and seeing that you actually want to work with times, you can even use a
DateTimeobject inside a for loopHere is some example code: