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

Home » PHP » PHP Constants » Question
  1. What will be the output of the following PHP code ?
    <?php
    define("FIRST_NAME", "Ajit");
    define("LAST_NAME", FIRST_NAME);

    echo FIRST_NAME;
    echo LAST_NAME;
    ?>
    1. Nothing
    2. Ajit
    3. FIRST_NAME LAST_NAME
    4. Error
    5. AjitAjit
Correct Option: E

Constants can be set as values for other constants.



Your comments will be displayed only after manual approval.