Re: Are '...' faster than "..." in normal code? Single Quot es vs. Double Quotes
| From: | Joe Stump | Date: | Mon, 04 Dec 2000 22:54:10 +0000 |
| Subject: | Re: Are '...' faster than "..." in normal code? Single Quot es vs. Double Quotes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28656@lists.php.net to get a copy of this message | ||
That goes without saying I think...
--Joe
On Mon, Dec 04, 2000 at 04:48:24PM -0600, Boget, Chris wrote:
> > 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
-----
Joe Stump, PHP Hacker
joestump98@yahoo.com
http://www.miester.org/
Need a programmer? http://www.google.com/search?q=%22Joe+Stump%22
*****************************************************************
* RENT THIS SPACE - SEEN BY THOUSANDS EACH DAY! *
* Current Sponsor: http://www.smackdown.com
*
*****************************************************************