-
What will be the output of the following PHP code?
<?php
define("GREETING1","Welcome to interview mania!");
define("GREETING2","Welcome to interview mania!");
define("GREETING3","Welcome to interview mania!");
echo defined("GREETING");
?>
-
- "GREETING Welcome to interview mania! " 3 times
- Error
- "Welcome to interview mania!" 3 times
- Nothing
- None of these
Correct Option: D
The defined() function checks whether a constant exists.