i have a string that looks like:
$string = "2005~nyy~75~10;2004~chi~26~18;2003~chi~45~78;2002~bos~24~46;2001~chi~24~56"
i want to split it by the ; character
then split each line by the ~ character,
then take the "nny", "chi", "chi", "bos", "chi"
and put these into an array
then only show unique values
so i get "nny", "chi", "bos"
(even though there are 3 chi, it shows only once)