Help! php - control flow: switch


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

<!DOCTYPE html>
     switch (3) {
        case 1:
        case 2:
        case 3:
            echo "lol!";
        case 4;
            echo "What to type";


you need three 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


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