Menu
×
×
Correct!
Exercise:Add a section that will output "Neither" if
switch ($color) {
case "red":
echo "Hello";
break;
case "green":
echo "Welcome";
break;
@(8)
echo "Neither";
}
switch ($color) {
case "red":
echo "Hello";
break;
case "green":
echo "Welcome";
break;
default:
echo "Neither";
}
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 47 exercises.
Are you sure you want to continue?