Re: R: [Phplib-users] coding style concerning strings
Brought to you by:
nhruby,
richardarcher
From: Richard A. <rh...@ju...> - 2002-09-25 11:12:09
|
At 9:57 +0200 25/9/02, Gaetano Giunta wrote: >but there were some tests done recently by someone (?) that showed an >absolutely irrelevant difference in speed changing quotes. I ran some speed tests once, but I'm not sure where I published them. The result was that under PHP 3 there is an order of magnitude of difference in processing " and ' strings. But under PHP 4 the difference is around 5%. Personally I always use " as it makes the code just a little more consistent and easier to maintain. I hate having to change ' to " when I need to add a variable to a string, and always forget to change them back when deleting all vars! ...Richard. |