PHP 4.0 Bug #9458 Updated: in_array() error
| From: | stas@php.net | Date: | Mon, 26 Feb 2001 12:45:12 +0000 |
| Subject: | PHP 4.0 Bug #9458 Updated: in_array() error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47549@lists.php.net to get a copy of this message | ||
ID: 9458
Updated by: stas
Reported By: tf@tfromm.com
Old-Status: Open
Status: Closed
Bug Type: Arrays related
Assigned To:
Comments:
Do not see any problem here. in_array returns for me false,
as it should. This bug seems to be fixed or you have some
other problem.
Previous Comments:
---------------------------------------------------------------------------
[2001-02-26 07:42:17] tf@tfromm.com
comparison problem in in_array() function
<?php
$a="foo";
$b=array(1, 4, 6);
if(in_array($a, $b)){
echo "BAR!";
}
?>
is a little bit confusing, espacially for user, who comes from other programming languages ...
(seems not to be a feature ;-)
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9458&edit=2