【发布时间】:2010-09-17 17:07:02
【问题描述】:
如果有人愿意提供帮助,我需要一点帮助。
我有一个包含值的数组,我想循环遍历它,如果任何“user_id 值”相同,则计算重复用户 ID 的“max_score”值。
大批 ( [0] => 数组 ( [user_id] => 2 [max_score] => 10081 ) [1] => 数组 ( [user_id] => 1 [max_score] => 8774 ) [2] => 数组 ( [user_id] => 2 [max_score] => 5477 ) [3] => 数组 ( [user_id] => 3 [max_score] => 5267 ) [4] => 数组 ( [user_id] => 1 [max_score] => 5010 ) )有谁知道如何做到这一点?
非常感谢。
【问题讨论】: