Print and Echo
Moderator: General Moderators
Print and Echo
Is there any difference between print and echo statements in php?
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Print and Echo
Echo is faster! I cant remember why, but I remember researching it a while back and it was faster.
Re: Print and Echo
one is a function the other is a construct, that is, one returns one does not.
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Print and Echo
Ah hah...now that makes sense. Thanks 