note 42849 deleted from function.array-search by tomsommer
| From: | tomsommer@php.net | Date: | Tue, 01 Jun 2004 00:01:09 +0000 |
| Subject: | note 42849 deleted from function.array-search by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70376@lists.php.net to get a copy of this message | ||
Note Submitter: mattp at me dot com dot au
----
I was wondering if array_search used binary or serial search and from the comments here it looks
like it may be binary. However from a quick look at the PHP source code (PHP 4.3.4 and 5RC2) it
uses a hash table which would be quicker than a binary search (in most cases... the worst case is a
serial search...)