PHP array key exists Function with example

    By: Thad Mertz
    2 years ago
    Category: PHPViews: 17

    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.