collection::indexOf

Tries to find the index number for the given element

collection::indexOf($needle)

Parameters

$needle (mixed)
the element to search for

Return values

mixed
the name of the key or false