Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

    <?php

    function mine($num)

    {

    $num = 2 + $num;

    echo $num;

    }

    mine(3);

    ?>

  2. A.

     3

    B.

     $num

    C.

     5

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Simple arithmetic operation.


Be The First To Comment