note 8397 added to echo
| From: | jon+php-dev at unequivocal dot co dot uk | Date: | Sun, 10 Sep 2000 12:07:54 +0000 |
| Subject: | note 8397 added to echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4656@lists.php.net to get a copy of this message | ||
Re: ckernan@tibus.net's note,
It is better to echo multiple variables as:
echo $foo,$bar;
rather than
echo $foo . $bar;
because otherwise PHP will waste effort copying memorying around setting up your echo output as a
single string before sending it, whereas using ',' it will simply output the items
directly one by one.
http://www.php.net/manual/function.echo.php