Array
(
[2015] => Array
(
[0] => Array
(
[id] => 12
[title] => Story 12
[content] => Content of story
[date] => 2015-12-01
[featured] => 0
[source] => timeline_stories
)
[1] => Array
(
[id] => 2
[title] => Story 2
[content] => content of story
[date] => 2015-07-29
[featured] => 1
[source] => timeline_stories
)
)
[2014] => Array
(
[0] => Array
(
[id] => 3
[title] => Story 3
[content] => content 3
[date] => 2014-07-29
[featured] => 1
[source] => timeline_stories
)
)
)
我的數組具有以下結構,我按年分隔內容,使用array_keys()添加基於年的浮動菜單; 現在我需要在使用日期的年份附近添加月份智能菜單,如何訪問每年的特定日期? 基本上每年提取日期列「日期」,並顯示特定年份突出顯示的所有月份。php訪問多維數組中的特定數組值
這工作得很好了手動fecthing但我要動態擷取日期,我有一大堆時間表內容 –