NYCPHP Meetup

NYPHP.org

[nycphp-talk] single quote vs. double quote

Ken Robinson kenrbnsn at rbnsn.com
Mon Apr 2 22:53:48 EDT 2007


At 10:09 PM 4/2/2007, Hans Zaunere wrote:
> > Processor speeds being what they are, the only good reason to use
> > single quotes is so you don't have to use the shift key while you type
> > your code.
>
>True, but I still like the ability to quickly look at a string and know
>wheather it should contain variables or is static :)

Another good reason is to enclose strings that contain double quotes, 
eliminating the ugly (IMHO) backslash double-quote escape that so 
many people use.

Ken 




More information about the talk mailing list