Array1:
array('key01'=>321312, 'key03'=>23)
Array2:
array('key01'=>22, 'key04'=>78, 'key05'=>54)
I'm trying to to replace the values if array1 with the values of array2 and leaving any keys untouched that are not in array2.
So the outcome would be:
array('key01'=>22, 'key03'=>23, 'key04'=>78, 'key05'=>54)
array_mergelike Barmar mentions.