$iterator->indexOf()
Tries to find the index number for the given element
$iterator->indexOf(mixed $needle): int|false
Parameters
Name | Type | Default | Description |
---|---|---|---|
$needlerequired | mixed |
no default value | the element to search for |
Return types
int
orfalse
the index (int) of the element or false