A
Q. What will be the output of the following PHP code ?
Code:
<?php
$opt = "1";
switch ($opt)
{
case 1:
print "Hello ";
case 2:
print "MCQ";
default:
print "Buddy";
}
?>
$opt = "1";
switch ($opt)
{
case 1:
print "Hello ";
case 2:
print "MCQ";
default:
print "Buddy";
}
?>
- Correct Answer - Option(A)
- Views: 18
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.