indexOf() public method

Tries to find the index number for the given element
public indexOf ( mixed $needle ) : mixed
$needle mixed the element to search for
return mixed the name of the key or false
 /**
  * {@inheritdoc}
  */
 public function indexOf($element)
 {
     $this->initialize();
     return $this->coll->indexOf($element);
 }