連想配列の各キーの最大値を比較的簡単に見つける方法はありますか?
Array(
0 => Array(
"avgtime" => 19.75,
"bounces" => 3,
"pageviews" => 14,
"visitors" => 4
)
1 => Array(
"avgtime" => 1.125,
"bounces" => 7,
"pageviews" => 9,
"visitors" => 8
)
2 => Array(
"avgtime" => 111,
"bounces" => 18,
"pageviews" => 32,
"visitors" => 20
)
3 => Array(
"avgtime" => 6.9375,
"bounces" => 14,
"pageviews" => 18,
"visitors" => 10
)
4 => Array(
"avgtime" => 191,
"bounces" => 11,
"pageviews" => 57,
"visitors" => 24
)
);
各キーの最高値を保持する 1 つの配列を作成したいので、最終結果は次のようになります。
Array(
"avgtime" => 191,
"bounces" => 18,
"pageviews" => 57,
"visitors" => 24
);