What will be the output of the following PHP code ?
<?php
function constant()
{
define("GREETING", "Welcome to Narnia");
echo greeting;
}
?>
<?php
function constant()
{
define("GREETING", "Welcome to Narnia");
echo greeting;
}
?>
A. Welcome to Narnia
B. greeting
C. GREETING
D. ERROR
Answer: Option D
Join The Discussion