note 43531 added to function.echo
| From: | zvardin at pridestorm dot com | Date: | Thu, 24 Jun 2004 16:05:21 +0000 |
| Subject: | note 43531 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71598@lists.php.net to get a copy of this message | ||
Actually, that isn't correct, as I quote from the print documentation.
"print() is not actually a real function (it is a language construct)"
They're both constructs, not functions. The real difference is print still always returns 1,
and echo doesn't return anything. Because echo doesn't need to return something is
basically why it's slightly faster.
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43531
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43531&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43531&report=yes
Search -- http://master.php.net/manage/user-notes.php