original_string: public function search(array $params)
      {
          $response = $this->requestAndResponse('SEARCH', $params);
          if (!$response) {
              return $response;
          }
  
          foreach ($response as $ids) {
              if ($ids[0] == 'SEARCH') {
                  array_shift($ids);
                  return $ids;
              }
          }
          return array();
      }
code: public function search(array $params)
      {
          $response = $this->requestAndResponse('SEARCH', $params);
          if (!$response) {
              return $response;
          }
  
          foreach ($response as $ids) {
              if ($ids[0] == 'SEARCH') {
                  array_shift($ids);
                  return $ids;
              }
          }
          return array();
      }
code_tokens: public function search ( array $ params ) { $ response = $ this -> requestAndResponse ( 'SEARCH' , $ params ) ; if ( ! $ response ) { return $ response ; } foreach ( $ response as $ ids ) { if ( $ ids [ 0 ] == 'SEARCH' ) { array_shift ( $ ids ) ; return $ ids ; } } return array ( ) ; }
docstring: do a search request
  
  This method is currently marked as internal as the API might change and is not
  safe if you don't take precautions.
  
  @internal
  @return array message ids
docstring_tokens: do a search request