>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:[EMAIL PROTECTED]]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]