-
What will be the output of the following PHP code ?
<?php
define('ATTENTION_TEXT', 'Interview mania is good website.', true);
echo ATTENTION_TEXt;
$changing_var = 'text';
echo constant('ATTENTION_' . strtoupper($changing_var));
?>
-
- Nothing
- Interview mania is good website.
- Interview mania is good website.Interview mania is good website.
- Error
- None of these
Correct Option: C
echo constant(c) output c, and c here is the concatenation of ATTENTION_ and $changing_var with . operator.