key() restituisce la chiave corrente di un array, mentre current() restituisce il valore corrente di un array, non so se ti possono essere utili.
Regole del Forum