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

Discussion :: PHP - CS

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

    <?php

    $x = 5;

    {

    $x = 10;

    echo "$x";

    }

    echo "$x";

    ?>

  2. A.

     1010

    B.

     105

    C.

     510

    D.

     error

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Varibale x stores the value 10 and not 5.


Be The First To Comment