hey, I noticed this in some php code recently, and I noticed two different ways to do it.
$var = <<<EndDoc
type whatever here
EndDoc;
and
$var = <<<XML
type xml here
XML;
Ive never seen this before but Im guessing you can use any string after <<< and you close it by calling that string again. Does anyone know what this is called? I cant find any information about it.


Reply With Quote
Bookmarks