Zend
200-550 · Question #47
What is the output of the following code? $text = 'This is text'; $text1 = <<<'TEXT' $text TEXT; $text2 = <<<TEXT $text1 TEXT; echo "$text2";
The correct answer is B. $text. See the full explanation below for the reasoning.
Question
What is the output of the following code? $text = 'This is text'; $text1 = <<<'TEXT' $text TEXT; $text2 = <<<TEXT $text1 TEXT; echo "$text2";
Options
- AThis is text
- B$text
- C$text1
- D$text2
How the community answered
(55 responses)- A4% (2)
- B76% (42)
- C5% (3)
- D15% (8)
Community Discussion
No community discussion yet for this question.