array_key_last
(PHP 7 >= 7.3.0)
array_key_last — Gets the last key of an array
説明
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.
参考
- array_key_first() - Gets the first key of an array
- end() - 配列の内部ポインタを最終要素にセットする