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");
    echo greeting;
}
?>

Answer & Solution
Correct Answer: Option D
By default constants are case sensitive. Hence an error will arise.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.