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

    Explanation :

    As there is a backslash before $ it takes it as a string and not a variable therefore we get $looser as the output.


Be The First To Comment