Sail E0 Webinar
Question
What will be the output of the following PHP code ?
<?php
$a = "1";
switch($a)
{
case 1:
break;
print "hi";
case 2:
print "hello";
break;
default:
print "hi1";
}
?>
Options:
A .  hihellohi1
B .  no output
C .  hihi1
D .  hi1
Answer: Option B

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers