RE: [PHP] Are '...' faster than "..." in normal code? Single Quot es vs. Double Quotes
| From: | Boget, Chris | Date: | Mon, 04 Dec 2000 22:48:24 +0000 |
| Subject: | RE: [PHP] Are '...' faster than "..." in normal code? Single Quot es vs. Double Quotes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-28655@lists.php.net to get a copy of this message | ||
> 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