A
Q. What will be the output of the following PHP code ?
Code:
<?php
$s = 2.2;
switch($s)
{
case 2.1:
print "Option A";
break;
case 2.2:
print "Option B";
break;
default:
print "Option C";
}
?>
$s = 2.2;
switch($s)
{
case 2.1:
print "Option A";
break;
case 2.2:
print "Option B";
break;
default:
print "Option C";
}
?>
- Correct Answer - Option(C)
- Views: 10
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.