Last active
December 15, 2017 20:24
-
-
Save mrmccormack/6dd7234e02c693562f62b07562952353 to your computer and use it in GitHub Desktop.
IM315 color.php for test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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!"; | |
break; | |
default: | |
echo "Your favorite color is neither red, blue, or green!"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment