Re: [SMARTY] Re: Bugfixes and some other stuff...
| From: | Monte Ohrt | Date: | Sun, 14 Jul 2002 16:41:20 +0000 |
| Subject: | Re: [SMARTY] Re: Bugfixes and some other stuff... | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5295@lists.php.net to get a copy of this message | ||
Simple test:
$string = "test me";
echo "This is a test: " . $string . "\n"; --> repeated 100000 times, 1.768 seconds
echo "This is a test: $string\n"; --> repeated 100000 times, 3.294 seconds
Andrei Zmievski wrote:
On Sun, 14 Jul 2002, Norbert Röcher wrote:Writing something like: echo 'test: '.$test; is about 10% slower than echo "test: $test"; So this can't be said generally.Eh, no. In the first scenario PHP does not have to interpolate variables inside the string, so it is faster than the second one.-Andrei http://www.gravitonic.com/* The future is not what it used to be. *