I have a two dimensional array and I want to find maximum value from of a particular key from the whole array collection.
Here is the array I have and I want to find the maximum value for the Key recCount
[0] => stdClass Object
(
[id] => 1
[name] => 'Old IPhones and Small Androids'
[recCount] => 1
)
[1] => stdClass Object
(
[id] => 2
[name] => 'Low-end Windows Phone'
[recCount] => 1
)
[2] => stdClass Object
(
[id] => 3
[name] => 'IPhone'
[recCount] => 2
)
[3] => stdClass Object
(
[id] => 4
[name] => 'High-end Windows Phone'
[recCount] => 2
)
[4] => stdClass Object
(
[id] => 5
[name] => 'IPad'
[recCount] => 2
)