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 = <<
> I've
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 desir
2 matches
Mail list logo