Create a switch
statement that will output "Hello"
if $color
is "red", and "welcome"
if $color
is "green".
@(6) ($color) {
@(4) "red":
echo "Hello";
break;
@(4) "green":
echo "Welcome";
break;
}
switch ($color) {
case "red":
echo "Hello";
break;
case "green":
echo "Welcome";
break;
}