What is the output of this code?

What is the output of this code?

$world = ‘world’;

echo <<<‘TEXT’

hello $world

TEXT;
A . hello world
B . hello $world
C . PHP Parser error

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments