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

Discussion :: PHP - CS

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

    <?php

    $one = "Hello";

    $two = "World";

    echo "$one$two";

    ?>

  2. A.

     HelloWorld

    B.

     $one$two

    C.

     Hello

    D.

     Error

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Even though both the variables are inside the double-quotes, the value of the variable is substituted and then printed to the screen.


Be The First To Comment