Skip to content

Kirby 6.0.0

$item->isNth()

Checks if the item is at a certain position

$item->isNth(int $n, Items|null $collection = null): bool

Parameters

Name Type Default
$nrequired int no default value
$collection Kirby\Cms\Itemsornull null

Return type

bool

Parent class

Kirby\Cms\Item