i have data like this
id color
102 blue
102 red
102 pink
114 green
114 red
114 yellow
114 gray
118 white
118 blue
i want agglomerate color by id.. and i want result like this:
Array
(
[0] => Array
(
[0] => blue
[1] => red
[2] => pink
)
[1] => Array
(
[0] => green
[1] => red
[2] => yellow
[3] => gray
)
[2] => Array
(
[0] => white
[1] => blue
)
)
how i make it.. i'm still newbie, i'm little confusing make it