Menu Riverview Church

ARRAY_KEY_FIRST

Gets the first key of an array

SYNTAX

array_key_first ( array $array ) : mixed

PARAMETERS

array

An array.

RETURN

Returns the first key of array if the array is not empty; NULL otherwise.

EXAMPLES

string(1) "a"

PHP