note 31103 deleted from function.in-array by didou
| From: | didou@php.net | Date: | Mon, 25 Aug 2003 18:37:39 +0000 |
| Subject: | note 31103 deleted from function.in-array by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55052@lists.php.net to get a copy of this message | ||
Note Submitter: isthar
----
It happens because a non-empty string cast to bool is true, so it is in the array. If you check for
types (strict = true), things won't go "wrong".