Re: echo or print ?
| From: | Richard Lynch | Date: | Tue, 17 Apr 2007 22:31:23 +0000 |
| Subject: | Re: echo or print ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253150@lists.php.net to get a copy of this message | ||
On Tue, April 17, 2007 1:40 am, Christian Haensel wrote:
> Whenever I see people put their code up for review, I realize they
> mostly
> use print instead of echo, while I am using echo 99% of the time.
> Actually,
> I can't even remember when I last used the regular print.
There used to be a difference, but not really any more, I don't think.
Or does print still not allow multiple arguments?...
> What do you guys use, and what is the advantage (if ther is any) of
> print
> over echo? And I am not talking about print_r or anything, just the
> regular
> print. :o)
I use echo, because I'm old, and got in the habit, back when print()
was a function and echo was a language construct, and only echo let
you have as many args with commas as you wanted.
But there's no significant difference, as far as I know.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?