array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'iteratoriterator.key.php', 1 => 'IteratorIterator::key', 2 => 'Get the key of the current element', ), 'up' => array ( 0 => 'class.iteratoriterator.php', 1 => 'IteratorIterator', ), 'prev' => array ( 0 => 'iteratoriterator.getinneriterator.php', 1 => 'IteratorIterator::getInnerIterator', ), 'next' => array ( 0 => 'iteratoriterator.next.php', 1 => 'IteratorIterator::next', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/iteratoriterator/key.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

IteratorIterator::key

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

IteratorIterator::keyGet the key of the current element

Beschreibung

public IteratorIterator::key(): mixed

Get the key of the current element.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

The key of the current element.

Siehe auch