public function offsetSet($key, $value)
	{
		if (!is_scalar($key)) { // prevents NULL
			throw new InvalidArgumentException("Key must be either a string or an integer, " . gettype($key) ." given.");
		}
		$this->$key = $value;
	}
public function offsetSet($key, $value)
	{
		if (!is_scalar($key)) { // prevents NULL
			throw new InvalidArgumentException("Key must be either a string or an integer, " . gettype($key) ." given.");
		}
		$this->$key = $value;
	}
public function offsetSet ( $ key , $ value ) { if ( ! is_scalar ( $ key ) ) { // prevents NULL throw new InvalidArgumentException ( "Key must be either a string or an integer, " . gettype ( $ key ) . " given." ) ; } $ this -> $ key = $ value ; }
Replaces or appends a item.
@return void
Replaces or appends a item .