66.
What will be the output of the following PHP code ?
<?php
for (1; $i == 1; $i = 2)
    print "In for loop ";
    print "After loopn";
?>

67.
What will be the output of the following PHP code ?
<<php
for ($i == 2; ++$i == $i; ++$i)
    print "In for loop ";
    print "After loopn";
?>

68.
What will be the output of the following PHP code ?
<?php
for ($x = 1; $x < 10; $x++)
    for ($y = 1; $y < 5; $y++)
        print "Hello";
?>

69.
What will be the output of the following PHP code ?
<?php
for ($count = 1; $count != 20;$count++)
{
    print $count;
    $count++;
}
?>

70.
What will be the output of the following PHP code ?
<?php
for ($count = 1; $count < 20; $count++);
    print $count;
?>

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

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