For whatever reason I can't remember the PHP heredoc syntax. It's simple, I know. But my problem is I always do greater than (>>>) instead of less than (<<<). My reason behind this post is to hopefully ingrain it into my head.
In case you are unfamiliar, this is great for copying and pasting a bunch of pre-existing HTML with double quotes into PHP. The reason being is that you don't have to escape all the double-quotes.
More info over at PHP on the Strings page.
Once again, repeat after me. heredoc is <<<.
By the way, did I mention "Go Tigers"
<the todd />
Showing posts with label php heredoc less than echo strings. Show all posts
Showing posts with label php heredoc less than echo strings. Show all posts
Thursday, March 20, 2008
heredoc, heredoc, heredoc
Automatically generated by
the todd
on or about
4:18 PM
0
comments
Subscribe to:
Posts (Atom)