src/Collection/ArrayCollection.php
public function search($value, bool $strict = true)
    {
        return array_search($value, $this->items, $strict);
    }
public function search($value, bool $strict = true)
    {
        return array_search($value, $this->items, $strict);
    }
public function search ( $ value , bool $ strict = true ) { return array_search ( $ value , $ this -> items , $ strict ) ; }
Retrieves the key for a given value

Returns FALSE if the value is not found.

@param mixed $value  The value
@param bool  $strict Whether comparison should be strict

@return mixed
Retrieves the key for a given value