-
What will be the output of the following PHP code ?
<?php
function constant()
{
define("MESSAGE", "Welcome to Interview Mania");
echo MESSAGE;
}
?>
-
- MESSAGE, Welcome to Interview Mania
- Error
- Welcome to Interview Mania
- Nothing
- None of these
Correct Option: B
By default constants are case sensitive. Hence an error will arise.