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

Discussion :: PHP - CS

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

    <?php

    $color = "red";

    $color = "green";

    echo "$color";

    ?>

  2. A.

     red

    B.

     green

    C.

     red green

    D.

     error

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The variable contains the last value which has been assigned.


Be The First To Comment