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

Home » PHP » PHP While Loops » Question
  1. What will be the output of the following PHP code ?
    <?php
    do
    {
    print "Interview";
    }
    while(0);
    print "Mania";
    ?>
    1. Mania
    2. Interview
    3. Error
    4. InterviewMania
    5. None of these
Correct Option: D

The do while loop executes at least once as the condition is in the while loop.



Your comments will be displayed only after manual approval.