single vs double

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 .
From http://www.reddit.com/tb/8w1mk

Loading mentions Retweet
Filed under  //   php   programming  

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter


 

About

http://coffeesounds.com
Webdev, coffee drinker and all that