private mergeUnmodifiedPartial ( array &$target, array $source ) | ||
$target | array | |
$source | array |
private function mergeUnmodifiedPartial(array &$target, array $source)
{
foreach ($source as $key => $value) {
if (is_array($value) && isset($target[$key])) {
$this->mergeUnmodifiedPartial($target[$key], $value);
} else {
$target[$key] = $value;
}
}
}