如何在php中编写这样的数组
"Array
(
[0] => Array
(
[0] => Array
(
[day] => 1
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[1] => Array
(
[day] => 2
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[2] => Array
(
[day] => 3
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[3] => Array
(
[day] => 4
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[4] => Array
(
[day] => 5
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[5] => Array
(
[day] => 6
[td_class] => NewsCalWeekend
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[6] => Array
(
[day] => 7
[td_class] => NewsCalWeekend
[tday_class] => NewsCalDay
[events] => Array
(
)
)
)
[1] => Array
(
[0] => Array
(
[day] => 8
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[1] => Array
(
[day] => 9
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[2] => Array
(
[day] => 10
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[3] => Array
(
[day] => 11
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[4] => Array
(
[day] => 12
[td_class] => NewsCalToday
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[5] => Array
(
[day] => 13
[td_class] => NewsCalWeekend
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[6] => Array
(
[day] => 14
[td_class] => NewsCalWeekend
[tday_class] => NewsCalDay
[events] => Array
(
)
)
)
[2] => Array
(
[0] => Array
(
[day] => 15
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[1] => Array
(
[day] => 16
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[2] => Array
(
[day] => 17
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[3] => Array
(
[day] => 18
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[4] => Array
(
[day] => 19
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[5] => Array
(
[day] => 20
[td_class] => NewsCalWeekend
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[6] => Array
(
[day] => 21
[td_class] => NewsCalWeekend
[tday_class] => NewsCalDay
[events] => Array
(
)
)
)
[3] => Array
(
[0] => Array
(
[day] => 22
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[1] => Array
(
[day] => 23
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[2] => Array
(
[day] => 24
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[3] => Array
(
[day] => 25
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[4] => Array
(
[day] => 26
[td_class] => NewsCalDefault
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[5] => Array
(
[day] => 27
[td_class] => NewsCalWeekend
[tday_class] => NewsCalDay
[events] => Array
(
)
)
[6] => Array
(
[day] => 28
[td_class] => NewsCalWeekend
[tday_class] => NewsCalDay
[events] => Array
(
)
)
)
)
"
该数组表示一个月中的天数除以一周中的 7 天。需要转换成数组,不用除以周,只是一组天,一个月有多少天。