ID: 40082
Updated by: [EMAIL PROTECTED]
Reported By: paulnamuag at yahoo dot com
-Status: Open
+Status: Closed
Bug Type: Arrays related
Operating System: Linux
PHP Version: 5.2.0
New Comment:
Seems to work fine in CVS.
Previous Comments:
------------------------------------------------------------------------
[2007-01-09 20:40:52] paulnamuag at yahoo dot com
Description:
------------
$array = array( "field1" => 0, "field2" => "This is a string" );
$result = array_search( "This is a string", $array );
print_r( $result ); // Outputs "field1", not "field2"
Expected result:
----------------
$array = array( "field1" => 0, "field2" => "This is a string" );
$result = array_search( "This is a string", $array );
print_r( $result ); // Outputs "field2"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40082&edit=1