Skip to content

Kirby 6.0.0

$versions->nth()

Returns the nth element from the collection

$versions->nth(int $n): Version|null

Parameters

Name Type Default
$nrequired int no default value

Return types

Kirby\Content\Versionornull

Parent class

Kirby\Content\Versions inherited from Kirby\Toolkit\Collection