Page 1 of 1

Print and Echo

Posted: Tue Sep 09, 2008 1:37 am
by treesa
Is there any difference between print and echo statements in php?

Re: Print and Echo

Posted: Tue Sep 09, 2008 1:50 am
by jaoudestudios
Echo is faster! I cant remember why, but I remember researching it a while back and it was faster.

Re: Print and Echo

Posted: Tue Sep 09, 2008 3:38 am
by josh
one is a function the other is a construct, that is, one returns one does not.

Re: Print and Echo

Posted: Tue Sep 09, 2008 6:27 am
by jayshields

Re: Print and Echo

Posted: Tue Sep 09, 2008 8:48 am
by jaoudestudios
Ah hah...now that makes sense. Thanks :)