Fonctions sur les tableaux
PHP Manual

array_key_last

(PHP 7 >= 7.3.0)

array_key_lastGets the last key of an array

Description

mixed array_key_last ( array $array )

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

Liste de paramètres

array

An array.

Valeurs de retour

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

Voir aussi


Fonctions sur les tableaux
PHP Manual