Practicing for Switch of Web Design & Development

Questions 1 of 6
  • Q. What will be the output of the following PHP code?
    $a = "2";
    switch ()
    {
      case 1:
       echo "Apple";
       break;
      case 2:
       echo "Orange";
       break;
      default:
       echo "Mango";
    }