Re: comparison efficieny
| From: | Marek Kilimajer | Date: | Wed, 12 Nov 2003 23:35:01 +0000 |
| Subject: | Re: comparison efficieny | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169401@lists.php.net to get a copy of this message | ||
Jon Hill wrote:
I am sure I read somewhere that doing the following if (false === $variable) was a better option than if ($variable === false) maybe it was a dream or is there something in this? Jon The later will give error if you mistakenly use single =, which can spare you frustration when you debug your script.