Q. What will be the output of the following PHP code ?
Code:
<?php
define("STR_VAR","Ravinder");
${STR_VAR} = "Singh";
echo STR_VAR;
echo ${STR_VAR};
?>
β
Correct Answer: (B)
RavinderSingh