I mostly use HEREDOC for SQL or to inject language in the PHP (JavaScript is good example). The great thing about it is that when you use delimiter SQL in PhpStorm it will turn on SQL Color Schema and code completion. The same goes with JavaScript by JS delimiter 🙂
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Peter.
Thanks for this.
I mostly use HEREDOC for SQL or to inject language in the PHP (JavaScript is good example). The great thing about it is that when you use delimiter SQL in PhpStorm it will turn on SQL Color Schema and code completion. The same goes with JavaScript by JS delimiter 🙂