note 79067 added to function.array-search

From: Date: Thu, 08 Nov 2007 22:31:57 +0000
Subject: note 79067 added to function.array-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-132121@lists.php.net to get a copy of this message
I'm experiencing a weird search_array bug where the search works fine, but the first element in the array is ignored every time. (e.g. the search works as if the first element doesn't even exist). Has anyone else run into this problem? The only workaround I found was the put a dummy element into the first [0] spot into the array. After that, everything works fine. Strange, eh? ---- Server IP: 64.71.164.2 Probable Submitter: 66.108.90.143 ---- Manual Page -- http://www.php.net/manual/en/function.array-search.php Edit -- https://master.php.net/note/edit/79067 Del: integrated -- https://master.php.net/note/delete/79067/integrated Del: useless -- https://master.php.net/note/delete/79067/useless Del: bad code -- https://master.php.net/note/delete/79067/bad+code Del: spam -- https://master.php.net/note/delete/79067/spam Del: non-english -- https://master.php.net/note/delete/79067/non-english Del: in docs -- https://master.php.net/note/delete/79067/in+docs Del: other reasons-- https://master.php.net/note/delete/79067 Reject -- https://master.php.net/note/reject/79067 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132121) next »