Here is my multidimensional array :
array(
array('object_id' => 10, 'score' => 1),
array('object_id' => 11, 'score' => 1),
array('object_id' => 12, 'score' => 1),
array('object_id' => 11, 'score' => 1),
array('object_id' => 10, 'score' => 1),
array('object_id' => 14, 'score' => 1),
)
My expected out put is :
array(
array('object_id' => 10, 'score' => 2),
array('object_id' => 11, 'score' => 2),
array('object_id' => 12, 'score' => 1),
array('object_id' => 14, 'score' => 1),
)
Verbally, what I need is find the unique object_ids inside the multidimensional array and combine their 'score' value. What is the most efficient way to do this in php?