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

Discussion :: PHP - CS

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

    <?php

    $color1 = "1";

    $color2 = "1";

    echo "$color1" + "$color2";

    ?>

  2. A.

     11

    B.

     2

    C.

     0

    D.

     1

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    + can be used to add to integer values which are enclosed by double-quotes.


Be The First To Comment