I want to count the same values at the deepest/last level of a multidimensional array:
Array
(
[svote001] => Array
(
[0] => 006
[1] => 006
[2] => 007
)
[svote002] => Array
(
[0] => 000
[1] => 000
[2] => 000
)
[svote003] => Array
(
[0] => 002
[1] => 003
[2] => 001
)
)
converted to
Array
(
[svote001] => Array
(
[006] => 2
[007] => 1
)
[svote002] => Array
(
[000] => 3
)
[svote003] => Array
(
[001] => 1
[002] => 1
[003] => 1
)
)
The counted values should additionally be sorted from high to low numbers.