I have these following values from a db using mysql_fetch_assoc()
Id - Val
0 - TextA
0 - TextB
1 - TextC
2 - TextD
2 - TextE
3 - TextF
I need to add these values into an array in php which can club values like this
0 - TextA,TextB
1 - TextC
2 - TextD,TextE
3 - TextF