Vidyalelo
PHP · Q6

Operators And Expressions

Programming · PHP · question 6

Q6

What will be the output of the following PHP code ?

A.
Hello world
B.
echo “Hello world”
C.
echo Hello world
D.
Error
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
It would have printed echo “Hello world” if the statement was echo “echo ”Hello World””;.