PHP Code Completion Medium +20 XP
Heredoc Syntax
Complete the heredoc opening delimiter.
PHPFill in the blank
$html = <<<___
<h1>Hello</h1>
_END_;Type the missing code
Show answer and explanation
Answer: _END_
Heredoc uses <<<IDENTIFIER syntax. The identifier can be anything; it's used to mark the end of the string on its own line.
Hint: The identifier names both the start and end of heredoc.
What this challenge tests
Code Completion in PHP: strings, heredoc.