SqlParser\TokensList::offsetUnset PHP Method

offsetUnset() public method

Unsets the value of an offset.
public offsetUnset ( integer $offset ) : void
$offset integer The offset to be unset.
return void
    public function offsetUnset($offset)
    {
        unset($this->tokens[$offset]);
        --$this->count;
        for ($i = $offset; $i < $this->count; ++$i) {
            $this->tokens[$i] = $this->tokens[$i + 1];
        }
        unset($this->tokens[$this->count]);
    }