Home » PHP » PHP Operators » Question
  1. What will be the output of the following PHP code ?
    <?php
    $n = 4;
    while (++$n)
    {
    while ($n --> 0)
    print $n;
    }
    ?>
    1. 43210
    2. 4
    3. Error
    4. 01234
    5. None of these
Correct Option: A

The loop ends when n becomes 0.



Your comments will be displayed only after manual approval.