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

Home » PHP » PHP Constants » Question
  1. What will be the output of the following PHP code?
    <?php
    define("__LINE__", "She is beautiful");
    echo "\n";
    echo __LINE__;
    ?>
    1. She is beautiful
    2. Error
    3. Nothing
    4. 4
    5. None of these
Correct Option: D

__LINE__ is a magical constant that gives the current line number and cannot be used as a variable/constant name.



Your comments will be displayed only after manual approval.