![]() |
|
|
+ Search |
![]()
|
Mar 22nd, 2006 09:54
Guillaume B,
Hello,
I have noticed that you cannot call an object method in a
heredoc syntax, for example:
class toto {
function method() {
return "coucou";
}
}
$toto = new toto();
echo <<<EOT
toto method : {$toto->method()}
EOT;
Should ouput "toto method : coucou", yet
it outputs: Parse error: parse error, unexpected '(', expecting '}'
Is there a way to do that or not?
Thanks to all