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

The for loop has no body,it just runs till condition is satisfied.



Your comments will be displayed only after manual approval.