|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-09 22:23 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 05:00:01 2025 UTC |
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"