The PHP “heredoc” Syntax

An excellent alternative method to assigning string variables is to use the heredoc syntax. If you are assigning long strings of text with characters that need escaping, try this: To me, it looks a bit messy at first, but it does make large chunks of text more readable in your code. Consider this alternative to…