PHP Operators


  1. What will be the output of the following PHP code ?
    <?php
    $p = 3;
    $q = 4;
    $r = $p++ + ++$q;
    echo $r;
    ?>











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Post increment of p is done after expression evaluation.