?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
define("GREETING", "PHP is a scripting language");
echo $GREETING;
?>
<?php
define("GREETING", "PHP is a scripting language");
echo $GREETING;
?>
Answer & Solution
Correct Answer:
Option
B
Constants do not need a $ before them, they are referenced by their variable names itself.
Join the Discussion
Login to post a comment or share your explanation.
Login