ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
define("NEW_GOOD_NAME_CONSTANT", "I have a value");
define("OLD_BAD_NAME_CONSTANT", NEW_GOOD_NAME_CONSTANT);
 
echo NEW_GOOD_NAME_CONSTANT;
echo OLD_BAD_NAME_CONSTANT; 
?>

Answer & Solution
Correct Answer: Option B
Constants can be set as values for other constants.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.