Hi,
i am working with a string like
$str="a_au_noun_sing, a_au_noun_plu,b_au_noun_sing,c_au_noun_sing,c_au_noun_plu,a_au_noun_sing,b_au_noun_sing,a_au_noun_sing";
My first problem is that i want to sort this string with distinct records mean if thier is duplicate record then only one show here.
above string will out put me
$distince="a_au_noun_sing, a_au_noun_plu,b_au_noun_sing,c_au_noun_sing,c_au_noun_plu";
Second in each string as you see it start like (a, b, c_) i want to get (a,b,c) only no duplicate here too that mean above string will give me
$cat="a,b,c";
Thanks