Merge arrays so they contain only recurring values
问题 We are upgrading a webshop so the filtering is a little bit different. Now we simply get all product ID's which are related to one or more selected filter values. //Filter value '8 GB' $result[] = array(1,6,5,8,9); //Filter value 'AMD E' (and)OR 'INTEL' $result[] = array(1,5,8,9,10,500,502,503,600,607,608,...); The 'AMD E' and 'INTEL' values are from the same filter 'Processor' so we would like these combined as the visitor would like to have all products with an AMD E OR an INTEL processor.