Jump to content

Question about <<<html


Gratch

Recommended Posts

Hello all, this is my first post so be gentle with me please...

 

I can't seem to find any ino anywhere on using this in php code

 

$content = <<<html
...a bunch of HTML code...
html;

 

Could someone explain what the <<<html means? the proper way to use such a thing. I assume it basically means that the variabe will be filled with HTML content. The tripple <<< is what I am not sure of the proper use.

 

Thanks in advance for any help.

Link to comment
https://forums.phpfreaks.com/topic/103046-question-about/
Share on other sites

The Heredoc link you provided doesn't work. I thank you for your explanation but I'm still at a loss for info. Can I be directed to learn more about this. I googled the heredoc notation and I am no further to understanding its use, purpose and functionality because I can't find any sites that directly explain what is happening.

Link to comment
https://forums.phpfreaks.com/topic/103046-question-about/#findComment-527826
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.