A
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};
?>
define("STR_VAR","Ravinder");
${STR_VAR} = "Singh";
echo STR_VAR;
echo ${STR_VAR};
?>
- Correct Answer - Option(B)
- Views: 9
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.