Re: Back to Basics - Why Use Single Quotes?

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

 



On 7/30/08, Stephen <stephen-d@xxxxxxxxxx> wrote:

> But I wonder, is there any reason to use single quotes?

extremely minor performance gains, afaik.

probably moreso when doing $foo["bar"] and $foo['bar']

but i believe it's negligible $foo = 'bar' and $foo = "bar"

sara golemon did some performance tests with actual opcode results here:
http://blog.libssh2.org/index.php?/archives/28-How-long-is-a-piece-of-string.html

-- 
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