Home » PHP » PHP Operators » Question
  1. What will be the output of the following PHP code ?
    <?php
    $num = 20;
    $num = $num++ + 25;
    echo $num;
    ?>
    1. Nothing
    2. 20
    3. 25
    4. 45
    5. Error
Correct Option: D

Operator precedence followed.



Your comments will be displayed only after manual approval.