Saw an example of code recently that used this:
echo <<<HTML
$error $x INVALID DOMAINS<DIV align="center">$display</DIV>
HTML;
I would have done it like:
echo $error.$x."INVALID DOMAINS<DIV
align=\"center\">".$display."</DIV>";
I tried it thos other way, and it output the same info. But what I'm
intrigued by is the fact with this other way, I don't have to escape
quotes!
I have noticed some annoyances like "HTML;" but be completely left
justified or it breaks whatever "<<<HTML" does which can make proper
indentation look odd.
But what exactly is "<<<HTML" and what other uses does it have?
I've been trying to seach it, but Google and Yahoo and MSN all ignore
the <<< so all I get are pages regarding HTML. =/
Thanks for any info!
Liam