Re: echo or print

From: Date: Fri, 21 Nov 2003 11:06:15 +0000
Subject: Re: echo or print
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-170541@lists.php.net to get a copy of this message
Eugene, et al -- ..and then Eugene Lee said... % % <p class="tonue-in-cheek"> % % Also, the letter 'e' is smaller than 'p', so ASCII-based function % lookups will be faster as well. Most of these speed increases can't be noticed in a small script, where the end is within a few lines, but echo() really works well in larger scripts where the end is far away. In addition, print() only sort of works well in the "near" case and doesn't work at all in the "far" case (as demonstrated when trying to throw something printed, such as a book). Finally, echo()ed statements always remain in the proper order, but throwing a bunch of print()s will just get you a big mess on the floor requiring an intelligent sort() to clean up -- and you know how tough it can be to write a quick sort() algorithm! % % </p> HTH & HAND ;-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#170541) next »