How to group this:
Array(
[0] => Array(
[brand] => 'ABC',
[model] => 'xyz',
[size] => 13
)
[1] => Array(
[brand] => 'QWE',
[model] => 'poi',
[size] => 23
)
[2] => Array(
[brand] => 'ABC',
[model] => 'xyz',
[size] => 18
) )
into this:
Array(
[0] => Array(
[brand] => 'ABC',
[model] => 'xyz',
[size] => Array(
13,
18
)
)
[1] => Array(
[brand] => 'QWE',
[model] => 'poi',
[size] => 23
) )
I want to group by BRAND and MODEL, but insert an array in the SIZE, since this one is not the same.