David T-G wrote:
> 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

Guys, Jay asked a serious question (I think). Anyways, let's take this one
step further to something that I've really been wondering about.

(.. long bunch of HTML ..)
Jay asked <?=$Question?>, then Tom said <? echo $Answer; ?>. <?php

print 'Meanwhile a lot of others read it including '.$Strangers[0].',
'.$Strangers[2].', '.$Strangers[3].' and '.$Strangers[4].'."\n";
echo "After a short while, among others, $Kirk[firstname] {$Kirk[lastname]}
also said his things.";
?>

Point is, which of the inline printing style is preferred by you guyes. I
tend to use <?=$Var?> a lot, since it reads easier but get into struggles
with myself when I do that multiple times in a row.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to