note 35178 added to function.array-keys

From: Date: Fri, 22 Aug 2003 10:33:07 +0000
Subject: note 35178 added to function.array-keys
Groups: php.notes 
Request: Send a blank email to php-notes+get-54860@lists.php.net to get a copy of this message
Note, that using array_key_exists() is rather inefficient. The overhead associated with calling a function makes it slower, than using isset($array[$key]), instead of array_key_exists($key, $array) using isset() is usually about 1.3 times faster, according to my tests. ---- Manual Page -- http://www.php.net/manual/en/function.array-keys.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35178 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35178&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35178&report=yes

« previous php.notes (#54860) next »