Is there a way i can replace the values of one array with the values of another non identical array and obtain as result only the first (updated) array? For example:
$arr1 = Array
(
[key3] => var3
[key4] => var4
)
$arr2 = Array
(
[key1] => var1
[key2] => var2
[key3] => new_var
[key4] => new_var
[key5] => var5
[key6] => var6
)
I want to get:
$arr_result = Array
(
[key3] => new_var
[key4] => new_var
)
$arr_result = array_merge($arr1, $arr2)
is not the solution