Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (21 sloc) 325 Bytes
<!DOCTYPE html>
<html>
<body>
<?php
$favcolor="red";
switch($favcolor)
{
case "red":
echo "Your favorite color is red!";
break;
case "blue":
echo "Your favorite color is blue";
break;
case "green":
echo "Your favorite color is green";
default:
echo "Your favorite color is neither red,blue, or green!";
}
?>
</body>
</html>