I've got this array
Array
(
[0] => Array
(
[Browser] => Chrome
[Number_Browser] => 3
[Platform] => MacOSX
)
[1] => Array
(
[Browser] => Default Browser
[Number_Browser] => 10187
[Platform] => unknown
)
[2] => Array
(
[Browser] => Chrome
[Number_Browser] => 2
[Platform] => MacOSX
)
[3] => Array
(
[Browser] => Chrome
[Number_Browser] => 1
[Platform] => MacOSX
)
[4] => Array
(
[Browser] => Chrome
[Number_Browser] => 2
[Platform] => MacOSX
)
[5] => Array
(
[Browser] => Chrome
[Number_Browser] => 1
[Platform] => MacOSX
)
[6] => Array
(
[Browser] => Chrome
[Number_Browser] => 1
[Platform] => MacOSX
)
[7] => Array
(
[Browser] => Default Browser
[Number_Browser] => 1
[Platform] => unknown
)
[8] => Array
(
[Browser] => Chrome
[Number_Browser] => 4
[Platform] => MacOSX
)
[9] => Array
(
[Browser] => Safari
[Number_Browser] => 1
[Platform] => MacOSX
)
)
This is what I need to get as a result
Array
(
[0] => Array
(
[Browser] => Chrome
[Number_Browser] => 14
[Platform] => MacOSX
)
[1] => Array
(
[Browser] => Default Browser
[Number_Browser] => 10188
[Platform] => unknown
)
[3] => Array
(
[Browser] => Safari
[Number_Browser] => 1
[Platform] => MacOSX
)
)
I've been trying for a while with no luck. I need to combine the sub dimensions so when displaying the list on screen it displays the correct amount.
This data is coming from DB, which in Browser we get the User agent, so that's why there are a number of Chrome in the result because of different versions or User Agent string.
Then I'm using browser cap to make it easier to understand to the end user.
I would like then to combine the arrays so it give me the result as described above.
Any help would be appreciated.