Skip to content

Kirby 6.0.0

$lazyCollection->nth()

Returns the nth element from the collection

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

Parameters

Name Type Default
$nrequired int no default value

Return types

mixedornull

Parent class

Kirby\Cms\LazyCollection