πŸ“Š PHP
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}; 
?>
  • (A) test
  • (B) testtest
  • (C) testvalue
  • (D) error, constant value cannot be changed
πŸ’¬ Discuss
βœ… Correct Answer: (C) testvalue

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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