array_key_last
Gets the last key of an array
Description
intstringnull array_key_last(array $array)
Parameters
-
array
-
An array.
Return Values
Returns the last key of array if the array is not empty;
null otherwise.
See Also
- array_last
- array_key_first
- end