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

Discussion :: PHP - CS

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

    <?php

    define("GREETING","Hello you! How are you today?");

    echo constant("GREETING");

    ?>

  2. A.

     Hello you! How are you today?

    B.

     GREETING

    C.

     GREETING, Hello you! How are you today?

    D.

     “GREETING”,”Hello you! How are you today?”

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The define() function defines a constant.


Be The First To Comment