Re: echo or print ?

From: Date: Sat, 21 Apr 2007 22:24:53 +0000
Subject: Re: echo or print ?
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-253452@lists.php.net to get a copy of this message
Tijnema ! wrote:
But what else would you use a lot in your code? all commonly used things (like while, if, echo, etc) are just (nearly) as fast as their alternatives (for, print, etc). Other functions (like file/stream) might be some performance difference, but you probably use this only a few times in your script. So there's not a bigger performance difference then when optimizing echo/print.
Get your head out of the details. Try file-based caching against DB access. Or SQL query optimisation. Or even server configuration tuning. All these things and others on the same level are far more worthy of your time. -Stut

« previous php.general (#253452) next »