Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<InternalIterator::currentInternalIterator::next>
^InternalIteratorLast updated: Mon, 26 Oct 2026

InternalIterator::key

(PHP 8)

InternalIterator::key — Return the key of the current element

Description

public function InternalIterator::key(): mixed

Returns the key of the current element.

Parameters

This function has no parameters.

Return Values

Returns the key of the current element.


<InternalIterator::currentInternalIterator::next>
^InternalIteratorLast updated: Mon, 26 Oct 2026