I need to merge two arrays into 1 array but what I need is to remove before the main data they b oth have in common (duplicated values i mean), I need only unique values whe
You can combine the array_merge() function with the array_unique() function (both titles are pretty self-explanatory)
$array = array_unique (array_merge ($array1, $array2));