Home » PHP » PHP Operators » Question
  1. What will be the output of the following PHP code ?
    <?php
    $n1 = 5;
    print $n = ++$n;
    ?>
    1. 5
    2. 3
    3. 1
    4. 0
    5. None of these
Correct Option: C

$n = ++$n returns 1(success).



Your comments will be displayed only after manual approval.