Skip to content

Kirby 6.0.0

$blocks->nth()

Returns the nth element from the collection

$blocks->nth(int $n): Block|null

Parameters

Name Type Default
$nrequired int no default value

Return types

Kirby\Cms\Blockornull

Parent class

Kirby\Cms\Blocks inherited from Kirby\Toolkit\Collection