original_string: public function search($value, $strict = false)
      {
          if (! $this->useAsCallable($value)) {
              return array_search($value, $this->items, $strict);
          }
  
          foreach ($this->items as $key => $item) {
              if (call_user_func($value, $item, $key)) {
                  return $key;
              }
          }
  
          return false;
      }
code: public function search($value, $strict = false)
      {
          if (! $this->useAsCallable($value)) {
              return array_search($value, $this->items, $strict);
          }
  
          foreach ($this->items as $key => $item) {
              if (call_user_func($value, $item, $key)) {
                  return $key;
              }
          }
  
          return false;
      }
code_tokens: public function search ( $ value , $ strict = false ) { if ( ! $ this -> useAsCallable ( $ value ) ) { return array_search ( $ value , $ this -> items , $ strict ) ; } foreach ( $ this -> items as $ key => $ item ) { if ( call_user_func ( $ value , $ item , $ key ) ) { return $ key ; } } return false ; }
docstring: Search the collection for a given value and return the corresponding key if successful.
  
  @param  mixed  $value
  @param  bool  $strict
  @return mixed
docstring_tokens: Search the collection for a given value and return the corresponding key if successful .