Menu
Hi,
i have this code
[code=php]$fn = ‘testfunction’;
function testfunction($argument) { whatever; }
$string = <<< heredoc
plain text and now a function: {$fn(‘someargument’)}
heredoc;
as far as i know, that should make it but it wont work, i get the following error:
[QUOTE]
Parse error: syntax error, unexpected ‘(‘, expecting ‘}’ in /home3/tokyoint/public_html/asakusa.htm on line 82
why is that? what am i doing wrong? its possible to have a function executed inside heredoc, isnt?
Thank you.