$fields->nth()
Returns the nth element from the collection
$fields->nth(int $n): Kirby\Form\Field|Kirby\Form\FieldClass|null
Parameters
| Name | Type | Default |
|---|---|---|
| $nrequired | int |
no default value |
Return types
Kirby\Form\FieldorKirby\Form\FieldClassornull
This method modifies the existing $fields object it is applied to and returns it again.
Parent class
Kirby\Form\Fields
inherited from Kirby\Toolkit\Collection