PHP key_exists() functionThe PHP key_exists( ) function is used to check if the given key or index exists in the array. It is an alias of array_key_exists( ).This function was introduced in PHP 4.0.6. SyntaxParameter
ReturnsThe function returns true if the key exists and false if the key does not exist. Example 1Output: Key exists! Example 2Output: Key exists! Example 3Output: Key exists! Example 4Output: Key exists!
Next TopicPHP Array Functions
|