PHP MCQ PHP Basic MCQ Question #2362
Single Choice Not Set

QWhat will be the output of the following PHP code?
< ?php 
    $team = "arsenal";
    switch ($team) {
    case "manu":
        echo "I love man u";
    case "arsenal":
        echo "I love arsenal";
    case "manc":
        echo "I love manc"; }
?>

ID: #2362 PHP Basic MCQ 1,721 views
Question Info
#2362Q ID
Not SetDifficulty
PHP Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A I love arsenal
  • B Error
  • C I love arsenalI love manc
  • D I love arsenalI love mancI love manu
Correct Answer

Explanation

If a break statement isn’t present, all subsequent case blocks will execute until a break statement is located.

Share This Question

Challenge a friend or share with your study group.