51.
What will be the output of the following PHP code ?
<?php
$i = "";
while ($i = 10)
{   
    print "hi";
}
print "hello";
?>

52.
What will be the output of the following PHP code ?
<?php
$i = 5;
while (--$i > 0)
{   
    $i++; print $i; print "hello";
}
?>

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

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

55.
What will be the output of the following PHP code ?
<?phpspan>
$i = 0;
while(?++$i || --$i)
{   
    print $i;
}
?>

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

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