一维数组求平均值
function median($a) {
// Work your magic here. Make sure you're calculating the median, NOT the mean!
return array_sum($a)/count($a);
}
一维数组求平均值
转载于:https://www.cnblogs.com/farmerworker/p/9612510.html