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

Discussion :: PHP - CS

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

    <?php

    define('IF', 42);

    echo "IF: ", IF;

    ?>

  2. A.

     IF:42

    B.

     No output

    C.

     IF:

    D.

     ERROR

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    Keyword like IF cannot be used as constant names.


Be The First To Comment