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

Discussion :: PHP - CS

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

    <?php

    $x = 5;

    $y = 10;

    $z = "$x + $y";

    echo "$z";

    ?>

  2. A.

     15

    B.

     10 + 5

    C.

     $z

    D.

     $x + $y

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Variable z will store 10 + 5 because 10 + 5 is given in double-quotes.


Be The First To Comment