I have a huge set of arrays like the one below. I want to count how many times a car is shown up under same manufacturersid. How would I do that
[0] => Array
(
[Make] => Array
(
[ManufacturersName] => Nissan
[type] => 4Dr
[manufacturersID] => 1
)
[Car] => Array
(
[Model] => Mexima
)
)
[1] => Array
(
[Make] => Array
(
[ManufacturersName] => Nissan
[type] => 4Dr
[manufacturersID] => 1
)
[Car] => Array
(
[Model] => Mexima
)
)
[2] => Array
(
[Make] => Array
(
[ManufacturersName] => Toyota
[type] => 4Dr
[manufacturersID] => 2
)
[Car] => Array
(
[Model] => Corolla
)
)
In above sample, Maxima showed up twice in Manufacturerid 1.
Thanks