Im curious to know if php has a function that allows me to connect 2 arrays together and replace values from array1 with values of array2 if the values from array2 already exist. see example
array1('value1','value2','value3',); array2('value4','value2','value1');
array3 = functionEmerge(array1, array2);
array3('value1','value2','value3','value4',);