nerdexam
Zend

200-550 · Question #43

What is the output of this code? $world = 'world'; echo <<<'TEXT' hello $world TEXT;

The correct answer is C. PHP Parser error. See the full explanation below for the reasoning.

Question

What is the output of this code? $world = 'world'; echo <<<'TEXT' hello $world TEXT;

Options

  • Ahello world
  • Bhello $world
  • CPHP Parser error

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    15% (4)
  • C
    77% (20)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice