note 125313 added to function.array-key-exists
| From: | phpatvxvrdotde@php.net | Date: | Mon, 31 Aug 2020 15:22:19 +0000 |
| Subject: | note 125313 added to function.array-key-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-215049@lists.php.net to get a copy of this message | ||
While Nik Tang's remark about the performance increase when using isset() first for PHP <=
7.3 is true, it is no longer valid for 7.4 and 8.0.
array_key_exists() is now as fast as isset() and the use of both is now slower for cases where the
key is zero or actually does not exist.
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.167.36 (proxied: 2003:d3:f22:b100:d08c:7f4c:7d33:89f3)
----
Manual Page -- http://php.net/manual/en/function.array-key-exists.php
Edit -- https://master.php.net/note/edit/125313
Del: integrated -- https://master.php.net/note/delete/125313/integrated
Del: useless -- https://master.php.net/note/delete/125313/useless
Del: bad code -- https://master.php.net/note/delete/125313/bad+code
Del: spam -- https://master.php.net/note/delete/125313/spam
Del: non-english -- https://master.php.net/note/delete/125313/non-english
Del: in docs -- https://master.php.net/note/delete/125313/in+docs
Del: other reasons-- https://master.php.net/note/delete/125313
Reject -- https://master.php.net/note/reject/125313
Search -- https://master.php.net/manage/user-notes.php