public function remove($offset, $length = 1)
    {
        if (!isset($this->elements[$offset])) {
            throw new OutOfBoundsException(sprintf('The offset %s is not within the property path', $offset));
        }

        $this->resize($offset, $length, 0);
    }
public function remove($offset, $length = 1)
    {
        if (!isset($this->elements[$offset])) {
            throw new OutOfBoundsException(sprintf('The offset %s is not within the property path', $offset));
        }

        $this->resize($offset, $length, 0);
    }
public function remove ( $ offset , $ length = 1 ) { if ( ! isset ( $ this -> elements [ $ offset ] ) ) { throw new OutOfBoundsException ( sprintf ( 'The offset %s is not within the property path' , $ offset ) ) ; } $ this -> resize ( $ offset , $ length , 0 ) ; }
Removes elements from the current path.

@param int $offset The offset at which to remove
@param int $length The length of the removed piece

@throws OutOfBoundsException if offset is invalid
Removes elements from the current path .