The SQL example is over-simplified, of course, but that is one place I almost always use double-quotes. For the most part, I use single-quotes.
I started using heredoc more frequently when I started getting closer to building whole CMS-like applications. I actually prefer it to using an output buffer for pushing content into a template (and I can, in most cases).




Reply With Quote

Bookmarks