Re: Print or Echo.
| From: | Alexander Wagner | Date: | Fri, 06 Apr 2001 22:24:10 +0000 |
| Subject: | Re: Print or Echo. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47515@lists.php.net to get a copy of this message | ||
Jeff Oien wrote:
> "As for a print vs. echo, echo gives you more options,
> such as being able to continue output on multiple lines
> like an <<EOT in perl. Look at the above notes. With print
> you would not be able to accomplish this."
There's another difference. print() returns true on success and false
when called after a connection abort. Echo doesn't, and that's why it's
slightly (very slightly) faster.
regards
Wagner
--
Assumption is the mother of all fuck-ups.