RE: [PHP] Print vs. Echo
| From: | Jon Haworth | Date: | Thu, 18 Jan 2001 17:24:13 +0000 |
| Subject: | RE: [PHP] Print vs. Echo | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35389@lists.php.net to get a copy of this message | ||
From www.php.net/print :
The print() function returns a boolean indicating the status of the call. If
the write was successful, print() returns 1. If not, it returns 0. This can
be used to detect when the client has closed the connection, and appropriate
measures taken. The builtin echo does not provide this same service.
This may be handy for you, though there's probably a lot more to it.
HTH
Jon
-----Original Message-----
From: Karl J. Stubsjoen [mailto:karlflips@kstub.com]
Sent: 18 January 2001 17:02
To: PHP Mailing List
Subject: [PHP] Print vs. Echo
What is the basic difference between print and echo? As I am understanding
it, Echo allows you to define a multi-line area to output text without
having to repeat quoting for each line but then what is the advantage of
print?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net