$collection->next()
Moves the cursor to the next element and returns it
$collection->next(): TValue
Return type
TValue
This method modifies the existing $collection
object it is applied to and returns it again.
Parent class
Kirby\Toolkit\Collection
inherited from Kirby\Toolkit\Iterator