function Collection::indexOf

Gets the index/key of a given element. The comparison of two elements is strict, that means not only the value but also the type must match. For objects this means reference equality.

Parameters

mixed $element The element to search for.:

Return value

mixed The key/index of the element or FALSE if the element was not found.

1 method overrides Collection::indexOf()

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/Collection.php, line 229

Class

Collection
The missing (SPL) Collection/Array/OrderedMap interface.

Namespace

Doctrine\Common\Collections

Code

function indexOf($element);