PHP 4.0 Bug #8015 Updated: in_array works only with equal variable types
| From: | andrei@php.net | Date: | Tue, 28 Nov 2000 19:54:01 +0000 |
| Subject: | PHP 4.0 Bug #8015 Updated: in_array works only with equal variable types | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39408@lists.php.net to get a copy of this message | ||
ID: 8015
Updated by: andrei
Reported By: mmlyanrcik@charmed.sk
Status: Closed
Bug Type: Arrays related
Assigned To:
Comments:
in_array() has third argument will enable strict comparison.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-28 14:45:55] mmlyanrcik@charmed.sk
Hi,
I don't know how it's possible but when i have an array which contains 0(zero) and then I
use in_array where i'm looking if some string is in array it says OK string is in_array. Maybe
when function should use comparision of variable types it could help.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8015