Skip to content

Kirby 5.0.4

$arguments->indexOf()

Tries to find the index number for the given element

$arguments->indexOf(Kirby\Query\Argument $needle): int|false

Parameters

Name Type Default Description
$needlerequired Kirby\Query\Argument no default value the element to search for

Return types

intorfalse

the index (int) of the element or false

This method modifies the existing $arguments object it is applied to and returns it again.

Parent class

Kirby\Query\Arguments inherited from Kirby\Toolkit\Iterator