Re: echo vs. print() performance?
| From: | Jack Dempsey | Date: | Fri, 14 Dec 2001 07:50:18 +0000 |
| Subject: | Re: echo vs. print() performance? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77712@lists.php.net to get a copy of this message | ||
not as a criticism, but this is among the top 10 questions asked ...or used
to be for a while...anyway, there's tons of info on the mailing lists,
marc.theaimsgroup.com
the short answer is that echo is SLIGHTLY faster being a language construct
rather than a function...then again, i believe i remember someone proving the
opposite...in general, you'll never notice a differenece between the two...
Jon Niola wrote:
> Someone on this list once mentioned a performance difference between using
> echo and print(). Is there any evidence to back this up? I am really
> curious to see if it would make a difference to use one over the other.
>
> --Jon
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net