Skip to content

Kirby 6.0.0

$user->indexOf()

Returns the position / index in the collection

$user->indexOf(Users|null $collection = null): int|false

Parameters

Name Type Default
$collection Kirby\Cms\Usersornull null

Return types

intorfalse

Parent class

Kirby\Cms\User