Possible Duplicate:
Is there a reason to use Heredoc in PHP?
I’m new to PHP.
Is it good practice to use something like that?
echo <<< HTML
<a href="$link" title="$title">$item</a>
HTML;
It does work, but I’m not sure if I’m using it correctly.
Thanks very much…
It is perfectly fine to use single-quotes, double-quotes, heredoc and nowdoc, depending on what you need (formatting, variables inside, etc.). See more info here.