Community Member Profile
- Profile: /members/5356-Thomas.htm
- URL: http://yais.dk
- Comments: 2
- Points: 21
Recent Blog Comments By Thomas
-
People! Please Stop Using Single Quotes!
Posted on Jun 26, 2011 at 7:05 AM
@Richard Your statement is of course true, it makes it *easier* to include variables. However, there is a performance overhead in doingg that, albeit maybe not noticable on regular applications like a WordPress blog or whatever. Furthermore, imagine you have to process this variable i... read more »
-
People! Please Stop Using Single Quotes!
Posted on Feb 4, 2010 at 8:32 AM
I prefer single-quotes in PHP and JavaScript. Double-quotes are required in XHTML attributes which makes it not a matter of preference but syntax. In PHP double-quotes are subject to string interpolation which expands \t, \n, \r, etc. and variables. Using single-quotes avoids PHP to do... read more »



