I have an array from a MySQL query that has two parts to it, I want to get the max from just the first part, but when I do max($row)
it returns the max of a date because those values are higher. When I try max(array_column($row, 'SUM(DISTRIBUTED_AMOUNT / EXCHANGE_RATE)'));
I get this error max(): Array must contain at least one element
Is there a way to do it only based on the first part?
Array
(
[SUM(DISTRIBUTED_AMOUNT / EXCHANGE_RATE)] => 19.1630000055071
[DATE] => 2013-11
)