"/>
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.

     Hello+World

    C.

     0

    D.

     Error

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    In an echo statement you can not use plus sign to join two strings.


Be The First To Comment