Q. What will be the output of the following PHP code ?
Code:<?php
define("VAR_NAME","test");
${VAR_NAME} = "value";
echo VAR_NAME;
echo ${VAR_NAME};
?>
β
Correct Answer: (C)
testvalue
<?php
define("VAR_NAME","test");
${VAR_NAME} = "value";
echo VAR_NAME;
echo ${VAR_NAME};
?>
You must be Logged in to update hint/solution