1.

What will be the output of the following PHP code?
<?php
$State = "Chennai";
switch ($State) {
case "Mumbai":
echo "I love Mumbai. ";
case "Chennai":
echo "I love Chennai. ";
case "Rajshathan":
echo "I love Rajshatan. "; }
?>

A. I love Chennai. I love Mumbai.
B. I love Mumbai.
C. Error
D. I love Chennai. I love Rajshatan.
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs