'.$data[0].'
|
';
$all = 0;
$votes = 0;
$ball = 0;
for($y = 1; $y <= 10; $y++){
$datas[$i]['str'] .='
'.$y.' |
|
';
$votes = $votes+$data[$y+1];
$all = $all+($data[$y+1]*$y);
}
$ball = round($all/$votes,2);
$datas[$i]['str'] .='
|
Ball: '.$ball.' |
Votes: '.$votes.' |
Summ: '.$all.' |
|
';
$datas[$i]['all'] = $all;
$alls[$i] = $ball;
}
// print_r($alls);
// echo '