Home » PHP » PHP Variables » Question
  1. What will be the output of the following PHP code ?
    <?php
    $m = 15;
    $n = 5;
    $t = 7;
    echo ($m % ($n) + $t);
    ?>
    1. 15
    2. 5
    3. 7
    4. Error
    5. None of these
Correct Option: C

The innermost bracket is evaluated first, since it covers only variable n it is as good as not using brackets.



Your comments will be displayed only after manual approval.