Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

    <?php

    var $one = 1;

    var $two = 2;

    echo $one / $two * $one / $two * $two;

    ?>

  2. A.

     1

    B.

     0

    C.

     0.5

    D.

     Error

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    You can not use var before a variable name.


Be The First To Comment