您好以下是数组的输出:
Array
(
[0] => stdClass Object
(
[id_category] => 68, 67
[cost] => 99
)
[1] => stdClass Object
(
[id_category] => 70
[cost] => 100
)
[2] => stdClass Object
(
[id_category] => 70
[cost] => 10
)
)
如何使用数组仅过滤最大值?所以输出只会是
Array
(
[0] => stdClass Object
(
[id_category] => 70
[cost] => 100
)
)
谢谢。