时间:2021-07-01 10:21:17 帮助过:18人阅读
通过php处理 生成需要格式的字符串,通过smarty展示
现在处理后的数组:
Array
(
[0] => Array
(
[id] => 10
[title] => title....title
[create_time] => 1418745763
[date] => 2014-12-17
)
[1] => Array
(
[id] => 9
[title] => title....title
[create_time] => 1418745155
[date] => 2014-12-16
)
[2] => Array
(
[id] => 8
[title] => abcabcabc
[create_time] => 1418744953
[date] => 2014-12-16
)
[3] => Array
(
[id] => 7
[title] => bbbbbb
[create_time] => 1416772786
[date] => 2014-11-24
)
[4] => Array
(
[id] => 1
[title] => aaaaaaa
[create_time] => 1415879638
[date] => 2014-11-13
)
)
如何把[date] 做成一个2维数组,然后在smarty 二层循环?