This is probably staring me right in the face, but after an hour on it I surrender to the experts here! I just want to display the contents of \"array_unique($check_for_duplicates)\"...
$check_for_duplicates = array(\"Tom\", \"Tom\", \"Harry\", \"Tom\", \"Harry\", \"Harry\", \"Harry\",
\"Tom\");
// returns (\"Tom\", \"Harry\")
// How do I display the contents of array_unique($check_for_duplicates)?
// I tried the following which didn\'t work...help?
$new = array();
while(list(array_unique($check_for_duplicates))){
array_push($new, list());
}
$count=count($new);
for ($i=0; $i<$count; $i++) {
echo \"$new[$i] - \";
}