我有一个由 MySQL 生成的数组,其中包含本周的访问者:
Array
(
[0] => Array
(
[iid] => 2
[mid] => 123456
[name] => Username
[date] => 2013-09-03 18:19:23
)
[1] => Array
(
[iid] => 2
[mid] => 123456
[name] => Username
[date] => 2013-09-03 18:19:20
)
[2] => Array
(
[iid] => 2
[mid] => 123456
[name] => Username
[date] => 2013-09-03 18:10:42
)
)
每个键都是一个访问者,我需要每天计算数组中有多少个访问者。
该数组应返回:
Mon: 0
Tue: 3
Wed: 0
etc