Q:

What will be the output of the following PHP code?

belongs to collection: BASICS OF PHP MCQ

0

What 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"; }
    ?>

  1. I love arsenal
  2. I love arsenalI love mancI love arsenalI love manc
  3. I love arsenalI love manc
  4. Error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).I love arsenalI love manc

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

BASICS OF PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which of the looping statements is/are supported b... >>
<< Which of the conditional statements is/are support...