OK sorry if i didn't explain this well I have a mysql table that I am provided with i cannot modify the table unfortuanely - in the table i have a column called catagories that has fields like this 1
Widget Store > Widget Main Category > Widget Sub Category > Widget
Now i need to sepearte the field so I've been using
list($store,$maincategory,$subcategory,$widget)
= split (">", $catagories, 4);
Now what I want to do is creat a list of Widget Main Categories ($maincategory) that has duplicates and blanks removed.