I have this piece of code I'm trying to get to display but no matter how I do it I just don't get any response or error whatsoever.
<?php
$day = array("Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo");
//$month[]= array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
function today(){
$d = date("N");
switch ($d){
case 1:
echo $day[1];
break;
case 2:
echo $day[2];
break;
case 3:
echo $day[3];
break;
case 4:
echo $day[4];
break;
case 5:
echo $day[5];
break;
case 6:
echo $day[6];
break;
case 7:
echo $day[7];
break;
}
}
today();
?>
Can anyone see any obvious mistake I might be making and haven't noticed?