<?php
$html = <<< HTM
<h1>This works!</h1>
HTM;
echo $html;
$html2 = <<< HTM2
<h3>And this don't</h3>
HTM2;
echo $html2;
?>
There are two heredocs. The first heredoc does work, the second not. And I don't understand why. Maybe someone can help to figure out this problem. Thank you very much!