Home » PHP » PHP For Loops » Question
  1. What will be the output of the following PHP code ?
    <?php
    for ($number = 1; $number != 20; $number++)
    {
    print $number;
    $number++;
    }
    ?>
    1. Nothing
    2. Infinite loop
    3. Error
    4. 1357..........35
    5. None of these
Correct Option: B

Condition always fails as number takes only odd numbers.



Your comments will be displayed only after manual approval.