The offset to assign the value to.
The value to set.
public function offsetSet($index, $value) { if (null === $index) { $this->array[] = $value; } else { $this->array[$index] = $value; } }