RE: [PHP] Are '...' faster than "..." in normal code? Single Quotes vs. Double Quotes

From: Date: Mon, 04 Dec 2000 23:05:19 +0000
Subject: RE: [PHP] Are '...' faster than "..." in normal code? Single Quotes vs. Double Quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28659@lists.php.net to get a copy of this message
parsed would be a better word, and it was used in the original post in the context that your statement was understood, thus the question regarding speeding up the echo of strings that do not need to be parsed. Would ditto a previous post... logic would dictate that not having to parse the string would eliminate a step and save some time... likely negligable to say the least unless we are talking large volumes of text (in which case you would just exit the PHP tag and resume later no?) -----Original Message----- From: Boget, Chris [mailto:Chris.Boget@wild.net] Sent: Monday, December 04, 2000 5:48 PM To: 'Joe Stump'; Matthew M. Boulter Cc: php-general@lists.php.net Subject: RE: [PHP] Are '...' faster than "..." in normal code? Single Quotes vs. Double Quotes > I'm sure we'll all get flamed over this one, but it is my > understanding that ' is faster than " But also bear in mind that "" interpolates (right word?) php code whereas '' does not. ie: $var = "bob"; echo "Hi, my name is $var."; will yeild: Hi, my name is bob. Whereas: $var = "bob"; echo 'Hi, my name is $var.'; will yield: Hi, my name is $var. Chris

« previous php.general (#28659) next »