Skip to content

Kirby 5.0.4

$arguments->nth()

Returns the nth element from the collection

$arguments->nth(int $n): Kirby\Query\Argument|null

Parameters

Name Type Default
$nrequired int no default value

Return types

Kirby\Query\Argumentornull

This method modifies the existing $arguments object it is applied to and returns it again.

Parent class

Kirby\Query\Arguments inherited from Kirby\Toolkit\Collection