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

Discussion :: PHP - CS

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

    <?php

    function onespan>()

    {

    define("const","I am awesome!");

    echo constant("const");

    }

    one();

    ?>

  2. A.

     I am awesome!!

    B.

     const

    C.

     const, I am awesome!!

    D.

     “const”,”I am awesome!”

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Using the define function to define the constant “const”.


Be The First To Comment