Thursday, March 20, 2008

heredoc, heredoc, heredoc

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 />

No comments: