Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

    <?php

    $y = 2;

    if (**$y == 4)

    {

    echo $y;

    }

    ?>

  2. A.

     4

    B.

     2

    C.

     error at line2

    D.

     no output

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The ** is not a valid operator,only ++ and — exist.


Be The First To Comment