"> What will be the output of the following PHP code ?<?phpswitch($t){case

Home » PHP » PHP Switch Statement » Question
  1. What will be the output of the following PHP code ?
    <?php
    switch($t)
    {
    case 2:
    print "Interview";
    break;
    case 1:
    print "Mania";
    break;
    }
    ?>
    1. Error
    2. Interview
    3. Interview Mania
    4. Mania
    5. None of these
Correct Option: A

Error Undefined variable: t



Your comments will be displayed only after manual approval.