Skip to content

Kirby 4.2.0

$fields->nth()

Returns the nth element from the collection

$fields->nth(int $n): mixed

Parameters

Name Type Default
$n * int

Return type

mixed

Parent class

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