Skip to content

Kirby 6.0.0

$options->nth()

Returns the nth element from the collection

$options->nth(int $n): Option|null

Parameters

Name Type Default
$nrequired int no default value

Return types

Kirby\Option\Optionornull

Parent class

Kirby\Option\Options inherited from Kirby\Toolkit\Collection