Steve wrote:
I personally have not unfortunately. A good friend of mine is also a
developer who initially told me about it when I first began coding. Because
I don't want to stick with the he-said, she-said approach, I did a quick
google search and came up with this link:
http://spindrop.us/2007/03/03/php-double-versus-single-quotes/
There's several other pages saying similar things if you do look around.
Even the performance different isn't significant, it will add up. If
something like this is known to help ever so slightly with execution time
and it's something you can teach yourself to do subconsciously, then I feel
it's definitely worthwhile to pursue.
""Richard Lynch"" <ceo@xxxxxxxxx> wrote in message
news:1980.67.184.122.32.1173863242.squirrel@xxxxxxxxxxxxxxxx
On Tue, March 13, 2007 9:31 am, Steve wrote:
This may or may not help, but here's a few things to note:
1) I would avoid placing variable output in double quoted strings.
While not
important for smaller scripts, doing a large number of outputs like
this
causes a decent performance hit. In fact, I wouldn't use double quotes
ever
in php. Instead, strive for something like:
echo '<b><a href="test.php?term='.$letter_value.'">'.$letter_value.'
</a></b>';
Have you benchmarked this, or can you provide a link to others'
benchmarks demonstrating this perofmrnace hit?...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
Check out this page I just created using the example from the link that
you provided.
I have grown off what the above examples page.
it takes a few seconds to load, so be patient.
http://www.cmsws.com/examples/php/speed_variables.php
--
Enjoy,
Jim Lucas
Different eyes see different things. Different hearts beat on different
strings. But there are times for you and me when all such things agree.
- Rush
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php