array_key_last

(PHP 7 >= 7.3.0)

array_key_lastGets the last key of an array

说明

array_key_last ( array $array ) : mixed

Get the last key of the given array without affecting the internal array pointer.

参数

array

An array.

返回值

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

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top