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

Discussion :: PHP - CS

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

    <?php

    $a = "$winner";

    $b = "$looser";

    echo $a, $b;

    ?>

  2. A.

     $winner$looser

    B.

     $looser

    C.

     \

    D.

     $looser

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Since two backslashes are used together, a single backslash is printed on the screen and as $looser is not initialised only single backslash is printed.


Be The First To Comment