Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$weekDay = 2;
switch ($weekDay) {
case 1:
echo "Lunes";
break;
case 2:
echo "Martes";
break;
case 3:
echo "Miércoles";
break;
case 4:
echo "Jueves";
break;
case 5:
echo "Viernes";
break;
case 6:
echo "Sábado";
break;
case 7:
echo "Domingo";
break;
default:
echo 'No se ha encontrado el día';
break;
}
// Martes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment