Vidyalelo
PHP · Q10

Operators And Expressions

Programming · PHP · question 10

Q10

What will be the output of the following PHP code ?

A.
red green
B.
red
C.
green
D.
error
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
It has to be color2 = “green”; therefore the error.