Cierto @caricatos pero en lo personal he tenido
 muchos problemas con HEREDOC, el parser no la lee bien siempre    
Código PHP:
Ver original<?php
   
$s = <<<HTML
    <table border='1'>
        <tr>
            <td>$valor<td>
        </tr>
    </table>
HTML;
 
echo $s;
  
Mientras que esto otro no funciona:    
Código PHP:
Ver original<?php
 
$s = <<<HTML
    <table border='1'>
        <tr>
            <td>$valor<td>
        </tr>
    </table>
HTML;       
 
echo $s;
  
   Cita:  Parse error: syntax error, unexpected end of file
    Y donde esta la falla ? 
Simplemente hay espacio o tabulador despues del ; cuando debe ser ;<enter> al terminar el heredoc .... horrible!!