Skip to content

Kirby 6.0.0

$roles->nth()

Returns the nth element from the collection

$roles->nth(int $n): Role|null

Parameters

Name Type Default
$nrequired int no default value

Return types

Kirby\Cms\Roleornull

Parent class

Kirby\Cms\Roles inherited from Kirby\Toolkit\Collection