Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

    <?php

    $y = 2;

    $w = 4;

    $y *= $w /= $y;

    echo $y, $w;

    ?>

  2. A.

     80.5

    B.

     44

    C.

     82

    D.

     42

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    Expression is evaluated from right to left.


Be The First To Comment