Re: using ($test)?$true:$false in a string
| From: | Richard Heyes | Date: | Mon, 21 Nov 2005 15:31:56 +0000 |
| Subject: | Re: using ($test)?$true:$false in a string | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226202@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
On Mon, 2005-11-21 at 10:02, Richard Heyes wrote:Try measuring the difference between the various methods over a realistic number of iterations, eg. 100. There's little point in going through ones code trying to "optimise" these things. Sure you might gain a millisecond here or there, but so what? You'd have to have a *seriously* busy site for that to make a difference. -- Richard HeyesReadability is in the eye of the beholder.But efficiency isn't ;)