ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
define("VAR_NAME","test"); 
${VAR_NAME} = "value"; 
echo VAR_NAME;
echo ${VAR_NAME}; 
?>

Answer & Solution
Correct Answer: Option C
${VAR_NAME} creates a new variable which is not same as VAR_NAME.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.