function search($needle, bool $strict = true) {
        return \array_search($needle, $this->data, $strict);
    }
function search($needle, bool $strict = true) {
        return \array_search($needle, $this->data, $strict);
    }
function search ( $ needle , bool $ strict = true ) { return \ array_search ( $ needle , $ this -> data , $ strict ) ; }
Searches the collection for the given value and returns its key if found. If the item is not found, false is returned.
@param mixed   $needle
@param bool    $strict
@return mixed|bool
Searches the collection for the given value and returns its key if found . If the item is not found false is returned .