Created
October 10, 2014 03:53
-
-
Save idhamperdameian/699a970c7899cd0f2479 to your computer and use it in GitHub Desktop.
Loop for time incremented by 15 minutes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$start=strtotime('00:00'); | |
$end=strtotime('23:30'); | |
for ($i=$start;$i<=$end;$i = $i + 15*60) | |
{ | |
echo date('H:i A',$i).'<br>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment