Re: Pointers For Newbies, Reminders For Oldies

From: Date: Wed, 27 Jan 2010 17:08:35 +0000
Subject: Re: Pointers For Newbies, Reminders For Oldies
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-301562@lists.php.net to get a copy of this message
On Wed, Jan 27, 2010 at 16:44, Ashley Sheridan <ash@ashleysheridan.co.uk> wrote: > What about using the right type of quotation marks for output: > > I use double quotes(") if I expect to output variables within the > string, and single quotes when it's just a simple string. > > It's only a general rule of thumb and shouldn't be adhered to > absolutely, but I remember a thread a while back that showed the speed > differences between the two because of the extra parsing PHP does on > double quoted strings. There is virtually no difference nowadays. It's a long time since anything like that has mattered. -- Daniel Egeberg

« previous php.general (#301562) next »