RE: [PHP] Print or Echo.
| From: | Jeff Oien | Date: | Fri, 06 Apr 2001 21:59:53 +0000 |
| Subject: | RE: [PHP] Print or Echo. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47512@lists.php.net to get a copy of this message | ||
> H-
>
> Just a quick question.
>
> Is there any difference between using print or echo?
>
> >From what I have read and seen there isn't any.
> Than why the two different commands?
>
> Thanks.
> -Sterling
See this:
http://www.php.net/manual/en/function.print.php
"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."
Jeff Oien