A
Q. What will be the output of the following PHP code ?
Code:
<?php
$k = 1;
switch(print $k)
{
case 2:
print "Statement1";
break;
case 1:
print "Statement2";
break;
default:
print "Statement3";
}
?>
$k = 1;
switch(print $k)
{
case 2:
print "Statement1";
break;
case 1:
print "Statement2";
break;
default:
print "Statement3";
}
?>
- Correct Answer - Option(D)
- Views: 5
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.