NYCPHP Meetup

NYPHP.org

[nycphp-talk] single quote vs. double quote

csnyder chsnyder at gmail.com
Wed Apr 4 11:47:54 EDT 2007


On 4/3/07, Paul Houle <paul at devonianfarm.com> wrote:
>
>     Here are my rules for PHP.
>
>     (1) Use ?>...some HTML...<?php as much as feasible
>     (2) Avoid heredoc -- it's particularly treacherous in PHP
>     (3) Use " in most situations.  Use \ to escape ", $ and \.
>     (4) Make a habit of writing {$like_this}
>

Nicely put.

-- 
Chris Snyder
http://chxo.com/



More information about the talk mailing list