I know I shouldn’t be outputting things directly in PHP, but using a template instead, but whatever.
I remember perl being able to do this, and as I reached for my perl book, I realized: I already packed it, as I’m moving. It’s incredibly difficult to search for “<<<“, as well.
So, I know I can go,
echo <<<SOMESTUFF
blah
blah
blah
but other than that I’m at a loss… How do I end it? Where do I need semicolons?
In PHP, this syntax is called a heredoc. The linked documentation contains some helpful examples.