php8.5
Home/ Manual/ predefined / iterator/ Iterator::next

Iterator::next

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Move forward to next element

Description

Iterator::next(): void

Moves the current position to the next element.

Note

This method is called after each Foreach loop.

Parameters Parameters

Return Values

Any returned value is ignored.

Source: language/predefined/iterator/next.xml · from the official PHP manual (php/doc-en)