public function offsetSet($index, $data) { $this->data = substr_replace($this->data, $data, $index, 1); }