note 122672 deleted from function.array-key-exists by crell
| From: | crell@php.net | Date: | Wed, 29 Jun 2022 20:45:08 +0000 |
| Subject: | note 122672 deleted from function.array-key-exists by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218766@lists.php.net to get a copy of this message | ||
Note Submitter: pierreantoine dot guillaume at gmail dot com
----
if you ever face a case in which your array_key_exists returns null, that might be because the
second parameter you gave it is not an array.
For instance :
var_dump(array_key_exists($my_key,$my_array));
//bool(true);
var_dump(array_key_exists($my_array, $my_key));
//NULL