Assigns a value to the specified offset.

Parameters

  • string $offset The offset to assign the value to.
  • mixed $value The value to set.

Returns

mixed The value which was set.

Source

						public function offsetSet($offset, $value) {
		if (is_null($offset)) {
			return $this->_data[] = $value;
		}
		return $this->_data[$offset] = $value;
	}