我想弄清楚如何从这个数组中的某些键(呼叫、联系人和音调)中获取平均值。我希望结果是一个数组,其中只有这三个键,其中包含三个键的平均值。所以应该是 [calls]=>27 [contacts]=>13 等。在此先感谢。
Array (
[0] => Array (
[index] => 78
[name] => RepOne
[repnumber] => 0001
[date] => 2013-03-16 07:17:14
[calls] => 36
[contacts] => 21
[pitches] => 10
)
[1] => Array (
[index] => 75
[name] => RepOne
[repnumber] => 0001
[date] => 2013-03-13 10:03:06
[calls] => 18
[contacts] => 12
[pitches] => 8
)
[2] => Array (
[index] => 74
[name] => RepOne
[repnumber] => 0001
[date] => 2013-03-12 03:03:06
[calls] => 20
[contacts] => 6
[pitches] => 3
)
)