foreach ($arr as $key => $value){
if (!array_key_exists($value->user, $count) ) {
$count[$value->user] = 0;
$sum[$value->user] = 0;
}
$count[$value->user] += 1;
$sum[$value->user] += $value->like;
}
arsort($count);
var_dump(key($count));
echo '<BR>';
var_dump($sum[key($count)]);