📅  最后修改于: 2022-03-11 14:54:28.475000             🧑  作者: Mango
代码示例1
$total = array_sum($share);
$share = array_map(function($hits) use ($total) {
return round($hits / $total * 100, 1) . '%';
}, $share);