You are here: Re: Calling function in heredoc block « PHP Language « IT news, forums, messages
Re: Calling function in heredoc block

Posted by Laiverd.COM on 03/29/07 19:37

Yep; I found the info. Have worked around it in the meantime. Thanks for
your time and input.

John

"Thomas Mlynarczyk" <thomas@mlynarczyk-webdesign.de> wrote in message
news:eugmu0$u41$03$1@news.t-online.com...
> 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
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация