Re: [PHP] Back to Basics - Why Use Single Quotes?
- From: mike503@xxxxxxxxx (mike)
- Date: Wed, 30 Jul 2008 16:03:27 -0700
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
.
- Follow-Ups:
- Re: [PHP] Back to Basics - Why Use Single Quotes?
- From: "Eric Butera"
- Re: [PHP] Back to Basics - Why Use Single Quotes?
- References:
- Back to Basics - Why Use Single Quotes?
- From: Stephen
- Back to Basics - Why Use Single Quotes?
- Prev by Date: Back to Basics - Why Use Single Quotes?
- Next by Date: Re: [PHP] Back to Basics - Why Use Single Quotes?
- Previous by thread: Back to Basics - Why Use Single Quotes?
- Next by thread: Re: [PHP] Back to Basics - Why Use Single Quotes?
- Index(es):