Help! php - control flow: switch


#1


https://www.codecademy.com/courses/web-beginner-en-jZv2E/0/6?curriculum_id=5124ef4c78d510dd89003eb8#


"Oops, try again. Make sure you have at least three breaks!"


<!DOCTYPE html>
<html>
    <head>
		<title></title>
	</head>
	<body>
    <?php
     switch (3) {
        case 1:
        case 2:
        case 3:
            echo "lol!";
            break;
        case 4;
            echo"Sup!";
        default:
            echo "What to type";
     }
    ?>
	</body>
</html>


#2

you need three breaks.now you have just one.

After completing each case you need a break like you did for case 1,2,3 .

have a look at this lesson again


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.