Thread
:
How to Escape Ternary Within Here Document?
View Single Post
#
1
(
permalink
)
05-01-2008
Michael Ruebner
Posts: n/a
How to Escape Ternary Within Here Document?
Hi,
How do I escape a ternary statement within a 'here document' construct?
Example:
echo <<<EOS
Some stuff here.
Some more stuff.
(check($this))?'Even more stuff!':'Enough!'
EOS;
TIA
Mike
Michael Ruebner