ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code ?
<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Raham Sher
Raham Sher 7 years ago
Its deprecated (true/false)