"> What will be the output of the following PHP code?<?phpdefine("GREETING","Welcome

Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    define("GREETING","Welcome to interview mania!");
    echo constant("GREETING");
    ?>
    1. Welcome to interview mania!
    2. GREETING Welcome to interview mania!
    3. Error
    4. Nothing
    5. None of these
Correct Option: A

The define() function defines a constant.



Your comments will be displayed only after manual approval.