Skip to content

Kirby 5.0.2

$collection->prev()

Moves the cursor to the previous element and returns it

$collection->prev(): TValue

Return type

TValue

Parent class

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