Re: [PHP] PHP Trick or Not - You Be the Judge

2010-06-30 Thread Michael Shadle
biggest difference: http://php.net/print print() returns 1, always - which means it's returning a value http://php.net/echo doesn't return anything Sara Golemon's "how long is a piece of string" blog post (http://blog.libssh2.org/index.php?/archives/28-How-long-is-a-piece-of-string.html which ap

Re: [PHP] PHP Trick or Not - You Be the Judge

2010-06-30 Thread Robert Cummings
Hey Brandon, do you think you could spend some time reading the Google talk manual? It's kind of irritating seeing your "Brandon Rampersad wants to chat" spam on the list repeatedly. As for which is faster... your assertion is right. Cheers, Rob. Brandon Rampersad wrote: Hello guys, i was

Re: [PHP] PHP Trick or Not - You Be the Judge

2010-06-30 Thread Jim Lucas
Brandon Rampersad wrote: > Hello guys, i was just doing some testing and was wondring if echo is faster > than print or print_r. I think since echo is a language construct and > print_r is a function, echo is faster. > > Please let me know. > > Thanks > People in the past have said that echo an

[PHP] PHP Trick or Not - You Be the Judge

2010-06-30 Thread Brandon Rampersad
Hello guys, i was just doing some testing and was wondring if echo is faster than print or print_r. I think since echo is a language construct and print_r is a function, echo is faster. Please let me know. Thanks -- A Brandon_R Production