note 65163 added to function.array-key-exists
| From: | gabe at websaviour dot com | Date: | Tue, 25 Apr 2006 21:05:36 +0000 |
| Subject: | note 65163 added to function.array-key-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-109694@lists.php.net to get a copy of this message | ||
To alex, yes it is a million times slower. It's linear complexity instead of the logarithmic
complexity offered by PHP's associative arrays. Of course it still works for small arrays, but
if you need that function for a large array you should rethink your architecture.
----
Server IP: 64.71.164.2
Probable Submitter: 68.35.62.190
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.array-key-exists.php
Edit -- http://master.php.net/note/edit/65163
Del: integrated -- http://master.php.net/note/delete/65163/integrated
Del: useless -- http://master.php.net/note/delete/65163/useless
Del: bad code -- http://master.php.net/note/delete/65163/bad+code
Del: spam -- http://master.php.net/note/delete/65163/spam
Del: non-english -- http://master.php.net/note/delete/65163/non-english
Del: in docs -- http://master.php.net/note/delete/65163/in+docs
Del: other reasons-- http://master.php.net/note/delete/65163
Reject -- http://master.php.net/note/reject/65163
Search -- http://master.php.net/manage/user-notes.php