If array_unique is giving you problems, then try this workaround:
$mixed_array = array("one", "one", "two", "three", "four", "three");
$unique_array = array();
My preferred method is using the foreach():
foreach($mixed_array as $array_value) {
if(in_array($array_value, $unique_array)) continue;
array_push($unique_array, $array_value);
}
Or if you prefer, you can also use the while() loop, but remember to reset the array before going through.
reset($mixed_array);
while(list(, $array_value) = each($mixed_array)) {
if(in_array($array_value, $unique_array)) continue;
array_push($unique_array, $array_value);
}
Hope that helps...
Regards