public function replace(array $new)
	{
		foreach ($new as $key => $values) {
			$this->validateKey($key);
			if (! is_array($values)) {
				$values = $new[$key] = [
					$values
				];
			}
			foreach ($values as $v) {
				$this->validateValue($v);
			}
		}
		foreach ($new as $key => $values) {
			$this->setArray($key, $values);
		}
	}
public function replace(array $new)
	{
		foreach ($new as $key => $values) {
			$this->validateKey($key);
			if (! is_array($values)) {
				$values = $new[$key] = [
					$values
				];
			}
			foreach ($values as $v) {
				$this->validateValue($v);
			}
		}
		foreach ($new as $key => $values) {
			$this->setArray($key, $values);
		}
	}
public function replace ( array $ new ) { foreach ( $ new as $ key => $ values ) { $ this -> validateKey ( $ key ) ; if ( ! is_array ( $ values ) ) { $ values = $ new [ $ key ] = [ $ values ] ; } foreach ( $ values as $ v ) { $ this -> validateValue ( $ v ) ; } } foreach ( $ new as $ key => $ values ) { $ this -> setArray ( $ key , $ values ) ; } }
Sets several new parameters, replacing the old values if already present.

The provided array must be associative with the parameter keys as array
keys and parameter values as array values.

The array values may be either a string (to set a single parameter value)
or an array (to set multiple parameter values).

@param array $new
Sets several new parameters replacing the old values if already present .