Q. What will be the output of the following PHP code?

Code:
<?php
function constant()
{
    define("GREETING", "Welcome to Narnia",true);
    echo greeting;
}
?>
  • (A) ERROR
  • (B) GREETING
  • (C) Welcome to Narnia
  • (D) greeting
πŸ’¬ Discuss
βœ… Correct Answer: (C) Welcome to Narnia

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
76289
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yogesh
Publisher
πŸ“ˆ
88%
Success Rate