Skip to content

Kirby 6.0.1

$fields->nth()

Returns the nth element from the collection

$fields->nth(int $n): Field|null

Parameters

Name Type Default
$nrequired int no default value

Return types

Kirby\Form\Fieldornull

Parent class

Kirby\Form\Fields inherited from Kirby\Toolkit\Collection