oskom Posted December 13, 2006 Share Posted December 13, 2006 Hello all,Does anyone off the top of their head know the Eric's "PHP and Web Services" example of building functions that would be used in a layout.php file for inclusion on pages. Specifically, I'm trying to remember the way he wrote the HTML code in the function. He didn't actually use "echo". He did something like:[code]<? phpfunction theHeader(){"HTML code"}?>[/code]But, I'm not sure that's right. Anyone know what the HELL I'm talkin' 'bout?Thanks,oskom Link to comment https://forums.phpfreaks.com/topic/30569-eric-rosebrocks-myheader-code/ Share on other sites More sharing options...
trq Posted December 13, 2006 Share Posted December 13, 2006 Maybe he used the [url=http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc]heredoc[/url] syntax. Link to comment https://forums.phpfreaks.com/topic/30569-eric-rosebrocks-myheader-code/#findComment-140739 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.