check if value present in array
In given image out out prints "Key present in array", as "e1" key is there in array.
This php function array_key_exists function checks an array for a specified key, and returns true if the key exists and false if the key does not exist.