Skip to content

Kirby 3.9.8

$nestcollection->indexOf()

Tries to find the index number for the given element

$nestcollection->indexOf(mixed $needle): int|false

Parameters

Name Type Default Description
$needle * mixed the element to search for

Return type

int|false

Parent class

Kirby\Cms\NestCollection inherited from Kirby\Toolkit\Iterator