I have an array in this format:
Array
(
[0] => Array
(
[id] => 117
[name] => Apple
[amount] => 300
)
[1] => Array
(
[id] => 188
[name] => Orange
[count] => 20
)
[2] => Array
(
[id] => 189
[name] => Grapes
[amount] => 7000
)
)
I'm trying to get the id of max amount from the associative array. how can i perform this?
i'm expecting the result
Array
(
[2] => Array
(
[id] => 189
[name] => Grapes
[amount] => 7000
)
)