Iterator::key

(PHP 5, PHP 7)

Iterator::keyReturn the key of the current element

Descrição

abstract public Iterator::key ( void ) : scalar

Returns the key of the current element.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Returns scalar on success, or NULL on failure.

Erros

Issues E_NOTICE on failure.