Menu Riverview Church

ARRAY_KEY_LAST

Gets the last key of an array

SYNTAX

array_key_last ( array $array ) : mixed

PARAMETERS

array

An array.

RETURN

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

EXAMPLES

string(1) "c"

PHP