Discussion :: PHP - CS
-
What will be the output of the following PHP code?
<?php
define("GREETING","Hello you! How are you today?");
echo constant("GREETING");
?>
A.
Hello you! How are you today? |
B.
GREETING |
C.
GREETING, Hello you! How are you today? |
D.
“GREETING”,”Hello you! How are you today?” |
Answer : Option A
Explanation :
The define() function defines a constant.
Be The First To Comment