?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
define("__LINE__", "PHP is a scripting language");
echo __LINE__;
?>
<?php
define("__LINE__", "PHP is a scripting language");
echo __LINE__;
?>
Answer & Solution
Correct Answer:
Option
C
__LINE__ is a magical constant that gives the current line number and cannot be used a variable/constant name.
Join the Discussion
Login to post a comment or share your explanation.
Login