View Single Post

  #1 (permalink)  
Old 05-01-2008
Michael Ruebner
 
Posts: n/a
Default 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
Reply With Quote