Vidyalelo
PHP · Q60

Operators And Expressions

Programming · PHP · question 60

Q60

What will be the output of the following PHP code ?

A.
Hello World
Answer
B.
Bye
C.
Hello worldBye
D.
Error

Answer: Option A

Solution

Answer: Option A
Solution:
Since there is a semi-colon in between bye, the line ends at bye would have printed if a echo was present before “$bye”.