[PHP] Set Variable to Multiple Lines

2002-08-29 Thread Mike richardson
I've been searching for this old php feature (perhaps it was deprecated), and can't get the right keywords to look it up. There was a way, similar to the perl method shown below, to set multiple lines of data equal to a variable. (in perl) $variable = __SOME_HEADER_HERE__ Put whatever is

Re: [PHP] Set Variable to Multiple Lines

2002-08-29 Thread Michael Sweeney
What you're looking for seems to be called the 'here document' syntax. I've always seen it used with print and there's a reference to it in the print function (okay, construct) PHP documentation, but a quick test shows that you can also use it to assign to variables. As follows: $var = END