Heredoc syntax: Calling a function?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mhulse
Forum Commoner
Posts: 41
Joined: Fri Jun 11, 2004 12:50 am

Heredoc syntax: Calling a function?

Post by mhulse »

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
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

store the function result inside a variable and then put the variable in the heredoc block?
Post Reply