Skip to content

Kirby 6.0.0

$structure->nth()

Returns the nth element from the collection

$structure->nth(int $n): StructureObject|null

Parameters

Name Type Default
$nrequired int no default value

Return types

Kirby\Cms\StructureObjectornull

Parent class

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