"> What will be the output of the following PHP code ?<?phpfor

Home » PHP » PHP For Loops » Question
  1. What will be the output of the following PHP code ?
    <?php
    for ($t = 2; $t < 7; $t++)
    {
    print "Interview\n";
    continue;
    print "Mania";
    }
    ?>
    1. Interview
    2. Interview 5 time
    3. Mania
    4. Mania 5 time
    5. None of these
Correct Option: B

When continue is encountered it skips to the next iteration.



Your comments will be displayed only after manual approval.