41.
What will be the output of the following PHP code ?
<?php
switch($b)
{
case 2:
    print "hello";
    break;
case 1:
    print "hi";
    break;
}
?>

42.
What will be the output of the following PHP code ?
<?php
switch($b)
{
case 2:
    print "hello";
    break;
case b:
    print "hi";
    break;
}
?>

43.
What will be the output of the following PHP code ?
<?php
while()
{
    print "hi";
}
?>

44.
What will be the output of the following PHP code ?
<?php
do
{
    print "hi";
}
while(0);
print "hello";
?>

45.
What will be the output of the following PHP code ?
<?php
$i = 0
while ($i < 3)
{
    $i++;
}
print $i;
?>

Read More Section(Control Structures(Loop in PHP))

Each Section contains maximum 70 questions. To get more questions visit other sections.