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

Discussion :: PHP - CS

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

    <?php

    function constant()

    {

    define("GREETING", "Welcome to Narnia");

    echo greeting;

    }

    ?>

  2. A.

     Welcome to Narnia

    B.

     greeting

    C.

     GREETING

    D.

     ERROR

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    By default constants are case sensitive. Hence an error will arise.


Be The First To Comment