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

Discussion :: PHP - CS

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

    <?php

    $color1 = "red";

    $color2 = "1";

    $color3 = "grey"

    echo "$color1" + "$color2" . "$color3";

    ?>

  2. A.

     1grey

    B.

     grey

    C.

     0

    D.

     red1grey

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    + gives the value 1 and . is used to give join 1 and grey.


Be The First To Comment