Title: Heredoc syntax: Calling a function?

How do I call a PHP function within the html of heredoc syntax?

The only way I can think of to do it would be to put my function calls within variables... and use the variables within the heredoc html...

Is that the proper way/best way?

Any help would be appreciated.

Thanks
Cheers
Micky

    i'm not sure what you mean, but i think you mean "how do i call a php function from client side?"

    if so, you output an html link, which redirects to another page, which runs the php and then redirects back to the original page (using [man]header[/man])

    hope that helps

    adam

      You can't call a function from inside heredoc syntax. What you do is call the function beforehand and store the result in a variable and use that variable inside the heredoc code.

        Write a Reply...