note 123110 deleted from function.array-key-exists by crell
| From: | crell@php.net | Date: | Wed, 29 Jun 2022 20:47:07 +0000 |
| Subject: | note 123110 deleted from function.array-key-exists by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218777@lists.php.net to get a copy of this message | ||
Note Submitter: Matej
----
Beware that if the array passed to array_key_exists is NULL, the return value will also be NULL.
This is undocumented behaviour, moreover the documentation (and return typehint) suggest that the
array_key_exists function only returns boolean value. But that's not the case.