Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

    <?php

    $var1 = 3;

    print ++$var++;

    ?>

  2. A.

     3

    B.

     4

    C.

     5

    D.

     error

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    First preincrement is done and the result is a number,thus post increment cannot be performed on it.


Be The First To Comment