note 39174 added to function.array-search
| From: | php-general at lists dot php dot net | Date: | Mon, 19 Jan 2004 21:41:30 +0000 |
| Subject: | note 39174 added to function.array-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63843@lists.php.net to get a copy of this message | ||
In response to dennis dot decoene:
Just remember that binary search requires the array to be sorted. If it's not sorted (and you
don't want to call sort() on it) then a binary search is not what you are lookng for.
----
Manual Page -- http://www.php.net/manual/en/function.array-search.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39174
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39174&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39174&report=yes
Search -- http://master.php.net/manage/user-notes.php