src/TypedArray.php
public function replace($in)
	{
		$this->_massageBlockInput($in);

		foreach ($in as $k => $v) {
			$this->offsetSet($k, $v);
		}
	}
public function replace($in)
	{
		$this->_massageBlockInput($in);

		foreach ($in as $k => $v) {
			$this->offsetSet($k, $v);
		}
	}
Copies all members into this class. Indexed keys will be re-indexed.

@param object|array|string|null $in

@throws \InvalidArgumentException