note 8397 modified in echo by ronabop
| From: | ronabop@php.net | Date: | Mon, 11 Sep 2000 18:21:42 +0000 |
| Subject: | note 8397 modified in echo by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4708@lists.php.net to get a copy of this message | ||
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