note 76222 added to function.array-key-exists
| From: | david at madole dot net | Date: | Fri, 06 Jul 2007 03:11:15 +0000 |
| Subject: | note 76222 added to function.array-key-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128256@lists.php.net to get a copy of this message | ||
Regarding performance differences between isset() and array_key_exists(), the differences may be
there, but the function are not always interchangable.
Note that when $a[1] = null then isset($a[1]) == false but array_key_exists(1, $a) == true
----
Server IP: 208.69.120.35
Probable Submitter: 66.212.193.19
----
Manual Page -- http://www.php.net/manual/en/function.array-key-exists.php
Edit -- https://master.php.net/note/edit/76222
Del: integrated -- https://master.php.net/note/delete/76222/integrated
Del: useless -- https://master.php.net/note/delete/76222/useless
Del: bad code -- https://master.php.net/note/delete/76222/bad+code
Del: spam -- https://master.php.net/note/delete/76222/spam
Del: non-english -- https://master.php.net/note/delete/76222/non-english
Del: in docs -- https://master.php.net/note/delete/76222/in+docs
Del: other reasons-- https://master.php.net/note/delete/76222
Reject -- https://master.php.net/note/reject/76222
Search -- https://master.php.net/manage/user-notes.php