I love them arrays i do...
Im always having to write replacement functions in PHP, i had to rewrite array_search the other day because my server PHP build didn't support it
Anyway i wrote this, not saying it cant be improved on of course
<?php
$arr = array(array("1","2","3"),array("3","6","7"));
$unique = make_unique($arr[0],$arr[1]);
var_dump($unique);
function make_unique($v,$c){
for($k=0; $k < sizeof($v); $k++){
for($j=0; $j< sizeof($v); $j++){
if($v[$k] == $c[$j]){
unset($c[$j]);
}
}
}
return array_merge($v,$c);
}
?>
Mark
hdwt.com