Skip to content

Kirby 6.0.0

$path->nth()

Returns the nth element from the collection

$path->nth(int $n): string|null

Parameters

Name Type Default
$nrequired int no default value

Return types

stringornull

Parent class

Kirby\Http\Path inherited from Kirby\Toolkit\Collection