[nycphp-talk] Can't get no $action
John Lacey
jlacey at att.net
Mon Apr 26 14:24:07 EDT 2004
Matthew Terenzio wrote:
>
> On Apr 26, 2004, at 1:11 PM, David Mintz wrote:
>
>>
>> One convenience of echo (over print) in PHP is that you can use commas
>> and
>> echo as many things as you like -- like the Perl's print. Feel free to
>> feel confused if you like.
>>
>> echo "Huh?", $object->method(), "... whatever.";
>
>
> what's the advantage of that over
>
> print "Huh?".$object->method()."... whatever.";
I think consistency of use throughout a given program or set of
scripts is what's important here -- as Adam intimated in an
earlier post.
The case study I use to teach [mostly] newbies uses echo
statements. So, I use echo statements consistently.
John
More information about the talk
mailing list