What’s quicker and better to determine if an array key exists in PHP?

isset() is faster, but it’s not the same as array_key_exists().

array_key_exists() purely checks if the key exists, even if the value is NULL.

Whereas
isset() will return false if the key exist and value is NULL.

Leave a Comment