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

Operator ++ can be done only on variables.



Your comments will be displayed only after manual approval.