As far as i know this is no way to use array_count_values for multidimensional array.
So, any of you guys know how to deal with this?

I have 2D array like this..

$arr=array([0]=>array([arr1]=>A[arr2]=>1)
[1]=>array([arr1]=>B[arr2]=>5)
[2]=>array([arr1]=>A[arr2]=>5)
etc...
)
i want to obtain combination of arr1-arr2 and its count(just like in 1D array using array_count_values).

Any of you know what class i can use? i tried google but it didn't seem to help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.