Discussion :: PHP - CS
-
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 : Option C
Explanation :
${VAR_NAME} creates a new variable which is not same as VAR_NAME.
Be The First To Comment