$oldarray = array ("A", "B", "C", "D", "E", "F"); $newarray = array_unique ($oldarray); foreach ($newarray as $val) { echo "$val", "\n"; }?>