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

    $z = $z + $x + $y;

    echo "$z";

    ?>

  2. A.

     $z

    B.

     15

    C.

     8

    D.

     1

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Normal addition of variables x, y and z occurs and result of 8 will be displayed.


Be The First To Comment