original_string: public function remove($index)
      {
          if (!isset($this->_streams[$index])) {
              throw new InvalidArgumentException("Unexisting stream index `{$index}`.");
          }
          $stream = $this->_streams[$index];
          unset($this->_streams[$index]);
          $this->_streams = array_values($this->_streams);
          return $stream;
      }
code: public function remove($index)
      {
          if (!isset($this->_streams[$index])) {
              throw new InvalidArgumentException("Unexisting stream index `{$index}`.");
          }
          $stream = $this->_streams[$index];
          unset($this->_streams[$index]);
          $this->_streams = array_values($this->_streams);
          return $stream;
      }
code_tokens: public function remove ( $ index ) { if ( ! isset ( $ this -> _streams [ $ index ] ) ) { throw new InvalidArgumentException ( "Unexisting stream index `{$index}`." ) ; } $ stream = $ this -> _streams [ $ index ] ; unset ( $ this -> _streams [ $ index ] ) ; $ this -> _streams = array_values ( $ this -> _streams ) ; return $ stream ; }
docstring: Remove a stream.
  
  @param  integer $index An index.
  @return object         The removed stream.
docstring_tokens: Remove a stream .