Menu
I don’t get it… I understand how to write one out, but what would you use it for or how, exactly?
Here’s the example:
[code=php]
switch ($x)
{
case 1:
echo “Number 1”;
break;
case 2:
echo “Number 2”;
break;
case 3:
echo “Number 3”;
break;
default:
echo “No number between 1 and 3”;
}
And here is what I came up with, but dunno how to use it.
[code=php]
$today=date(“D”);
switch ($today)
{
case 1:
echo “Today is only Thursday, almost wknd”;
break;
case 2:
echo “YAY!!! Its Finally Friday”;
break;
case 3:
echo “Damn, tomorrow already Monday”;
break;
default:
echo “Still a long way till the wknd”;
}