nerdexam
Zend

200-530 · Question #101

Consider the following PHP code snippet: $who = "World"; echo <<<TEXT "Hello $who"

The correct answer is B. Hello World. See the full explanation below for the reasoning.

Question

Consider the following PHP code snippet: $who = "World"; echo <<<TEXT "Hello $who"

Options

  • A<<< TEXT "Hello $who"
  • BHello World
  • CTEXT "Hello World"
  • DTEXT "Hello $who"What will be the output?

How the community answered

(43 responses)
  • A
    7% (3)
  • B
    84% (36)
  • C
    2% (1)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice