ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.