lib/Braintree/Collection.php
public function remove($index)
    {
        if($index >= $this->count())
            throw new OutOfRangeException('Index out of range');

        array_splice($this->_collection, $index, 1);
    }
public function remove($index)
    {
        if($index >= $this->count())
            throw new OutOfRangeException('Index out of range');

        array_splice($this->_collection, $index, 1);
    }
public function remove ( $ index ) { if ( $ index >= $ this -> count ( ) ) throw new OutOfRangeException ( 'Index out of range' ) ; array_splice ( $ this -> _collection , $ index , 1 ) ; }
Remove a value from the collection
@param integer $index index to remove
@throws OutOfRangeException if index is out of range
Remove a value from the collection