note 104995 deleted from function.array-key-exists by danbrown
| From: | danbrown@php.net | Date: | Thu, 21 Jul 2011 15:58:47 +0000 |
| Subject: | note 104995 deleted from function.array-key-exists by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181750@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Anonymous said:
> I just want to note that array_key_exists() can be extremely slow for large (>200 keys)
> arrays. Use isset($array[$key]) instead!
They do NOT do the same thing:
$a = array('key' => null);
isset($a['key']); // false
array_key_exists('key', $a); // true