Re: PHP 4.0 Bug #4753: in_array matches string vars as integers
| From: | Andrei Zmievski | Date: | Thu, 01 Jun 2000 13:11:23 +0000 |
| Subject: | Re: PHP 4.0 Bug #4753: in_array matches string vars as integers | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-19963@lists.php.net to get a copy of this message | ||
On Thu, 01 Jun 2000, Stanislav Malyshev wrote:
> This is because actually "1" == "001". I think there should be flag for
> in_array to use "identical" comaprison (===) instead of "smart" comparison
> (==). Something like in_array(mixed needle, array haystack[, bool
> strict]).
I'll review this proposal..
-Andrei
"Music expresses that which can not be said
and on which it is impossible to be silent."
-Victor Hugo