Home » PHP » PHP Operators » Question
  1. What will be the output of the following PHP code ?
    <?php
    $num = 10;
    $num = ($num + 15)++;
    echo $num;
    ?>
    1. 10
    2. 15
    3. Error
    4. 16
    5. 11
Correct Option: C

Operator ++ can be done only on variables.



Your comments will be displayed only after manual approval.