Oct 092009
Should I always use single-quotes for PHP strings?
Answer:
Some people say single-quotes string is faster than double-quotes string in PHP. But this have been rejected by the PHP's developer
Benchmarks run against PHP 5.2 and 5.3 show that parsing double-quoted
strings with interpolation is no slower (and often faster) than single-
quoted strings using concatenation. When simple strings with no
variables in them are used, the performance is clearly better with
double-quoted strings due to implementation details in the engine. See
the benchmark posted at .
Reference: http://groups.google.com/group/make-the-web-faster/browse_thread/thread/ddfbe82dd80408cc?pli=1