Is there an array function in PHP that somehow does array_merge, comparing the values, ignoring the keys? I think that array_unique(array_merge($a, $b
array_unique(array_merge($a, $b
function umerge($arrays){ $result = array(); foreach($arrays as $array){ $array = (array) $array; foreach($array as $value){ if(array_search($value,$result)===false)$result[]=$value; } } return $result; }