我有以下数组:
[0] => Array
(
[name] => The Name
[description] => description
[date] => Thur, May 5 @ 7:00 p.m.
[rating] => PG
[year] => 2011
)
[1] => Array
(
[name] => Name 2
[description] => description 2
[date] => Sun, May 8 @ 7:30 p.m.
[rating] => 14A
[year] => 2011
)
还有大约5-10个部分。
我最终想做的是使用数组中的日期部分按日分组这些项(例如,“所有日期为“ 5月8日”的项目应该被归为一组)。
你有什么想法吗?请注意,“日期”字段在数据库中存储为此,而不是从date();或其他方式转换的时间戳。
非常感谢!