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
 
<Iterator::keyIterator::rewind>
^IteratorLast updated: Mon, 26 Oct 2026

Iterator::next

(PHP 5, PHP 7, PHP 8)

Iterator::next — Move forward to next element

Description

public function Iterator::next(): void

Moves the current position to the next element.

Note:

This method is called after each foreach loop.

Parameters

This function has no parameters.

Return Values

Any returned value is ignored.


<Iterator::keyIterator::rewind>
^IteratorLast updated: Mon, 26 Oct 2026