src/MultiStream.php
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;
    }
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;
    }
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 ; }
Remove a stream.

@param  integer $index An index.
@return object         The removed stream.
Remove a stream .