Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    function First()
    {
    define("const","Interview mania is awesome!");
    echo constant("const");
    }
    First();
    ?>
    1. Error
    2. Interview mania is awesome!
    3. const, Interview mania is awesome!
    4. Nothing
    5. None of these
Correct Option: B

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



Your comments will be displayed only after manual approval.