Re: PHP URL issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.'
>> &nbsp;</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? 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux