ID: 13126
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Arrays related
Operating System: FreeBSD
PHP Version: 4.0.6
New Comment:
RTFM:
bool in_array (mixed needle, array haystack [, bool strict])
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-09-04 07:18:54] [EMAIL PROTECTED]
It seems like the in_array() function has been slightly altered in this (4.0.6)
release compared to 4.0.3.
A check of an array of chars against integers fail; but it didn't in verison 4.0.3.
example:
$char_array = array("1","2","3");
if(in_array($char_array, 2))
$output = "FOUND";
else
$output = "NOT FOUND";
echo $output;
----> produces the output "NOT FOUND";
Seems some typecasting is necessary this time...
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13126&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]