<?php $source = ["a" => 1, "b" => 2, "c" => 3]; $input = ["d" => 4, "b" => 10]; $new = $source + ($source + $input); print_r($new);
You have javascript disabled. You will not be able to edit any code.