"/>
Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. What will be the output of the following PHP code ?

    <?php

    $a = 1;

    if ($a--)

    print "True";

    if ($a++)

    print "False";

    ?>

  2. A.

     true

    B.

     false

    C.

     error

    D.

     no output

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Due to post increment and post decrement only the first condition is satisfied.


Be The First To Comment