Home » PHP » PHP Operators » Question
  1. What will be the output of the following PHP code ?
    <?php
    $p = 6; $q = -8; $r = 2;
    $s = ++$p && ++$q || ++$r;
    echo $s;
    echo $p;
    ?>
    1. 17
    2. 6
    3. -8
    4. 2
    5. None of these
Correct Option: A

17



Your comments will be displayed only after manual approval.