array_key_exists

PHP 4 >= 4.0.7, PHP 5, PHP 7, PHP 8
array_key_exists - Checks if the given key or index exists in the array

Example #1 array_key_exists example

PHP Version:

Example #2 array_key_exists vs isset

PHP Version:


Example #3 of array_key_exists

PHP Version:


Function array_key_exists:

Arrays Functions

Most used PHP functions