Skip to content

Kirby 4.2.0

$collection->next()

Moves the cursor to the next element and returns it

$collection->next(): mixed|null

Return type

mixed|null

Parent class

Kirby\Cms\Collection inherited from Kirby\Toolkit\Iterator