Problem Statement
Which function checks if a key exists in an associative array?
Explanation
array_key_exists() checks if a key exists in an array. isset() also works but returns false for null values.
Code Solution
SolutionRead Only
array_key_exists('name', $user);