What will be the output of the following PHP code ?
<?php
switch($b)
{
case 2:
print "hello";
break;
case 1:
print "hi";
break;
}
?>
<?php
switch($b)
{
case 2:
print "hello";
break;
case 1:
print "hi";
break;
}
?>
A. hello
B. hi
C. no output
D. error
Answer: Option C
Join The Discussion