Hi i have an internet radio station and i need to echo some text on my website depending on the server hour and day to let know what program is currently on...
This next example didn't work 🙁
thanx.
<?
$day = date("w"); //numeric representation of the day (0=sunday, 6=saturday)
$hour = date("H"); // time from 00 to 23
//build a multi-dimensional array of programs..
$program[0][00] = "show1";
$program[0][01] = "show2";
$program[0][02] = "show3";
.
.
.
$program[6][22] = "showX";
$program[6][23] = "ShowY";
echo $program[$day][$hour];
?>