Vidyalelo
PHP · Q35

Operators And Expressions

Programming · PHP · question 35

Q35

What will be the output of the following PHP code ?

A.
$GREETING
B.
no output
Answer
C.
PHP is a scripting language
D.
GREETING

Answer: Option B

Solution

Answer: Option B
Solution:
Constants do not need a $ before them, they are referenced by their variable names itself.