<?php
function listaHorarios($horaInicio, $horaFinal) {
$formato = function ($horario) {
return date('g:ia', $horario); };
$horarios = range($secsInicio, $secsFinal, 900); }
$horaInicio = '08:00:00';
$horaFinal = '15:00:00';
$horarios = listaHorarios($horaInicio, $horaFinal);
foreach($horarios as $horario){
echo "$horario \n";
}
PD9waHAKCmZ1bmN0aW9uIGxpc3RhSG9yYXJpb3MoJGhvcmFJbmljaW8sICRob3JhRmluYWwpIHsKCSRzZWNzSW5pY2lvID0gc3RydG90aW1lKCRob3JhSW5pY2lvKSAtIHN0cnRvdGltZSgndG9kYXknKTsKCSRzZWNzRmluYWwgPSBzdHJ0b3RpbWUoJGhvcmFGaW5hbCkgLSBzdHJ0b3RpbWUoJ3RvZGF5Jyk7CgkKCSRmb3JtYXRvID0gZnVuY3Rpb24gKCRob3JhcmlvKSB7CgkJcmV0dXJuIGRhdGUoJ2c6aWEnLCAkaG9yYXJpbyk7Cgl9OwoJCgkkaG9yYXJpb3MgPSByYW5nZSgkc2Vjc0luaWNpbywgJHNlY3NGaW5hbCwgOTAwKTsKCXJldHVybiBhcnJheV9tYXAoJGZvcm1hdG8sICRob3Jhcmlvcyk7Cn0KCiRob3JhSW5pY2lvID0gJzA4OjAwOjAwJzsKJGhvcmFGaW5hbCAgPSAnMTU6MDA6MDAnOwoKJGhvcmFyaW9zID0gbGlzdGFIb3JhcmlvcygkaG9yYUluaWNpbywgJGhvcmFGaW5hbCk7Cgpmb3JlYWNoKCRob3JhcmlvcyBhcyAkaG9yYXJpbyl7CgllY2hvICIkaG9yYXJpbyBcbiI7Cn0KCgoK