Home » PHP » PHP Operators » Question
  1. What will be the output of the following PHP code ?
    <?php
    $n = 15;
    $n = $n + 12;
    echo $n++;
    ?>
    1. 15
    2. 12
    3. Error
    4. Nothing
    5. 27
Correct Option: E

Operator precedence followed,incremented after display.



Your comments will be displayed only after manual approval.