Posted by Thomas Mlynarczyk on 03/29/07 15:45
Also sprach ZeldorBlat:
>> Simple question on which I could not find an answer. How would I - if
>> possible at all - call a function within a heredoc block of text?
> As far as I know you can't. The parser is looking for tokens
> beginning with $ (i.e. variables) inside the heredoc block.
If, however, your function is a method, it should be possible:
<<< EOT
Bla {$myObject->myMethod( $foo, $bar )} Bla
EOT
Greetings,
Thomas
[Back to original message]
|