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