- date: documentation ( source)
- strtotime: documentation ( source)
<?php $start = "0:00";
$end = "11:00";
$tStart = strtotime($start);
$tEnd = strtotime($end);
$tNow = $tStart;
while($tNow <= $tEnd){
echo date("H:i",$tNow)."\n";
$tNow = strtotime('+30 minutes',$tNow);
} ?>