I have this array:
Array
(
[LEVEL1] => Array
(
[0] => 18
[1] => 12
[2] => 16
[3] => 12
[4] => 12
)
[LEVEL2] => Array
(
[0] => 16
[1] => 18
[2] => 19
[3] => 19
[4] => 16
)
)
I would like to get subtotals sorted by key.
Array
(
[LEVEL1] => Array
(
[12] => 3
[16] => 1
[18] => 1
)
[LEVEL2] => Array
(
[19] => 2
[16] => 2 (rectification on the sorting)
[18] => 1
)
)
I tried many functions I found in php.net, but didn't even manage to sort it.
I can't get passed the first level.
Thanks Sebastian