note 92880 deleted from function.in-array by danbrown
| From: | danbrown@php.net | Date: | Thu, 13 Aug 2009 01:55:42 +0000 |
| Subject: | note 92880 deleted from function.in-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159421@lists.php.net to get a copy of this message | ||
Note Submitter: micah at thisisnt dot com
----
The issue that brianko has is with type conversion, not the function. By including 0 in his array,
if his match string will translate to (int) 0 then a match will be made.
I think it's important to make the distinction, as the function is matching properly, there is
indeed a match as long as you take into consideration the lazy typing rules of php.
This can be eliminated by using the strict type matching parameter.