Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created March 5, 2021 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/d2601a66ab6ee3c88acb5a24acabe864 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/d2601a66ab6ee3c88acb5a24acabe864 to your computer and use it in GitHub Desktop.
<?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