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

Discussion :: PHP - CS

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

    <?php

    $x = 4;

    $y = 3;

    $z = 1;

    echo "$x = $x + $y + $z";

    ?>

  2. A.

     4 = 4 + 3 + 1

    B.

     8

    C.

     8 = 4 + 3 +1

    D.

     Error

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Again since the variables are inside double quotes we get this result.


Be The First To Comment