πŸ“Š PHP
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}; 
?>
  • (A) Ravinder
  • (B) RavinderSingh
  • (C) Error
  • (D) Singh
πŸ’¬ Discuss
βœ… Correct Answer: (B) RavinderSingh

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
158
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ravinder Singh
Publisher
πŸ“ˆ
94%
Success Rate