Re: odd behavior of stripos() with === operator *LAST POST*
| From: | tedd | Date: | Fri, 17 Nov 2006 16:42:40 +0000 |
| Subject: | Re: odd behavior of stripos() with === operator *LAST POST* | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244815@lists.php.net to get a copy of this message | ||
At 2:54 AM -0700 11/17/06, Michael wrote:
Logic dictates that if something evaluates to NOT FALSE it must be TRUE. Regardless of the type, regardless of the species, breed, flavor etc.Not true -- it depends upon your reference/environment. For example, NULL is neither true nor false in MySQL. So, the result in a MySQL test could be both NOT FALSE and NOT TRUE. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com