?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
function constant()
{
define("GREETING", "Welcome to Narnia",true);
echo greeting;
}
?>
<?php
function constant()
{
define("GREETING", "Welcome to Narnia",true);
echo greeting;
}
?>
Answer & Solution
Correct Answer:
Option
A
By default constants are case sensitive. But the third parameter in define(), if set to true, makes constants case insensitive.
Join the Discussion
Login to post a comment or share your explanation.
Login