Right now im running something based on time and including files. This is a long file and seems unnecessary. What I want to do is auto increment the times for the 24 times i call code.
current style coding:
if($time >= "0000" && $time < "0100") { include("1.php"); } elseif($time >= "0200" && $time < "0300") { include("2.php");
Is there a way to assign an automatic array to each instance of the numbers something like this and loop it 24 times to make it fast loading and simple to code?
if($time >= "$times" && $time < "$times2") { include("$hours.php");