Yah, I guess it would test if the entire array were unique, not just a leading element. A hack?
function cleanArray($array) {
$checkarray=array();
for ($z=0; $z<count($array); $z++) {
$checkarray[$z]=$array[$z][1]; // or zero, whatever key you need
}
$checkarray=array_unique($checkarray);
return $checkarray;
}
Like I said, just a hack. No idea if it'll even help.