note 45893 deleted from function.in-array by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 22 Sep 2004 19:34:27 +0000 |
| Subject: | note 45893 deleted from function.in-array by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77209@lists.php.net to get a copy of this message | ||
Note Submitter: erik_bielefeldt at yahoo dot com
----
Please note the following ridiculous behaviour:
in_array('test', array(0)) evaluates to true
This is probably related to this behaviour:
0 == 'test' evaluates to true
For some reason, 0 is equivalent to any string.
Not cool.