Skip to content

Kirby 6.0.0

$collection->nth()

Returns the nth element from the collection

$collection->nth(int $n): mixed|null

Parameters

Name Type Default
$nrequired int no default value

Return types

mixedornull

Parent class

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