hey, I noticed this in some php code recently, and I noticed two different ways to do it.
$var = <<<EndDoc
type whatever here
$var = <<<XML
type xml here
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.
its called heredoc syntax
ah thanks a lot. I was wondering why it wasnt working for me, guess you cant put tabs before the identifier.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)