Menu Samaritan's Purse

ARRAY_KEY_EXISTS

Checks if the given key or index exists in the array

SYNTAX

array_key_exists ( mixed $key , array $array ) : bool

PARAMETERS

key

Value to check.

array

An array with keys to check.

RETURN

Returns TRUE on success or FALSE on failure.

EXAMPLES

1

true

2

true

3

true

4

true

PHP