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

Discussion :: PHP - CS

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

    <?php

    $color1 = "red";

    $color2 = "green";

    echo "$color1" . "$color2";

    ?>

  2. A.

     red

    B.

     green

    C.

     red green

    D.

     redgreen

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The . operator is used to join to strings.


Be The First To Comment