Skip to content

Kirby 6.0.1

$nestCollection->nth()

Returns the nth element from the collection

$nestCollection->nth(int $n): NestCollection|NestObject|Field|null

Parameters

Name Type Default
$nrequired int no default value

Return types

Kirby\Cms\NestCollectionorKirby\Cms\NestObjectorKirby\Content\Fieldornull

Parent class

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