The offset to unset.
public function offsetUnset($index) { if (!isset($this->array[$index])) { throw new \Exception('Index out of range'); // @todo Throw IndexException } unset($this->array[$index]); }