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

Discussion :: PHP - CS

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

    <?php

    $color1 = "red";

    $color2 = "red";

    echo "$color1" + "$color2";

    ?>

  2. A.

     redgreen

    B.

     red green

    C.

     0

    D.

     1

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    + does not return 1 if the variables are equal.


Be The First To Comment