I am not an expert on PHP. I have been given a task of adding a small amount of PHP code onto a page of an existing project. Through out the project, I am seeing code like
print <<< HTML
<h1>blah blah blah</h1>
HTML;
I have looked into the print method, and have not found discussion about the <<< HTML portion.
Does anyone know why this is how it is?
Thanks
This is called a HEREDOC, which is just a way of defining a multiline string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With