ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code?
<?php
define("GREETING1","Hello you! How are you today?");
define("GREETING2","Hello you! How are you today?");
define("GREETING3","Hello you! How are you today?");
echo defined("GREETING");
?>

Answer & Solution
Correct Answer: Option B
The defined() function checks whether a constant exists.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.