Re: print() or echo
| From: | Robert Cummings | Date: | Tue, 13 Feb 2007 16:35:38 +0000 |
| Subject: | Re: print() or echo | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248808@lists.php.net to get a copy of this message | ||
On Tue, 2007-02-13 at 19:19 +0330, Danial Rahmanzadeh wrote:
> is it true that echo is a bit faster than print()? in general, when we don't
> need a return value, which one is better to choose?
Yes, echo is faster than print. I would suggest echo over print since it
is shorter and faster :)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'