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

3*1 times is printed.



Your comments will be displayed only after manual approval.