$somevariable = <<< EOF[b:3280da4e63] [/b:3280da4e63]
// some code here
This is just a note and reminder that if you have any kind of spaces after the EOF at the top you will get strange parse errors that make no sense such as an existing function that PHP thinks is undefined.
The bottom EOF; must also not have any whitespace in front of it or behind it or you will get the same strange errors.
Remember this first when looking at strange parse errors if you are using heredoc because it will waste hours of your time!
[b:3280da4e63]One more thing[/b:3280da4e63]
Even heredoc that is commented out can still affect your PHP