Skip to content

Kirby 6.0.0

$users->nth()

Returns the nth element from the collection

$users->nth(int $n): User|null

Parameters

Name Type Default
$nrequired int no default value

Return types

Kirby\Cms\Userornull

Parent class

Kirby\Cms\Users inherited from Kirby\Cms\LazyCollection