Vidyalelo
PHP · Q41

Operators And Expressions

Programming · PHP · question 41

Q41

What will be the output of the following PHP code ?

A.
test
B.
error
Answer
C.
myObject::CONSTANT
D.
no output

Answer: Option B

Solution

Answer: Option B
Solution:
Class constants cannot be defined outside class.