Home » PHP » PHP Operators » Question
  1. What will be the output of the following PHP code ?
    <?php
    echo $t-- != ++$t;
    ?>
    1. 0
    2. 1
    3. true
    4. false
    5. None of these
Correct Option: B

Automatically t is declared and initialized to 0,then decremented and compared with its increments, thus returns 1.



Your comments will be displayed only after manual approval.