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
 
<IteratorIterator::key>
^IteratorLast updated: Mon, 26 Oct 2026

Iterator::current

(PHP 5, PHP 7, PHP 8)

Iterator::current — Return the current element

Description

public function Iterator::current(): mixed

Returns the current element.

Parameters

This function has no parameters.

Return Values

Can return any type.


<IteratorIterator::key>
^IteratorLast updated: Mon, 26 Oct 2026