array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'iterator.key.php', 1 => 'Iterator::key', 2 => 'Return the key of the current element', ), 'up' => array ( 0 => 'class.iterator.php', 1 => 'Iterator', ), 'prev' => array ( 0 => 'iterator.current.php', 1 => 'Iterator::current', ), 'next' => array ( 0 => 'iterator.next.php', 1 => 'Iterator::next', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/iterator/key.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Iterator::key

(PHP 5, PHP 7, PHP 8)

Iterator::keyReturn the key of the current element

Опис

public Iterator::key(): mixed

Returns the key of the current element.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns scalar on success, or null on failure.

Помилки/виключення

Issues E_NOTICE on failure.