我有一个大数组(这只是其中的一部分):
[0] => stdClass Object
(
[products] => Array
(
[0] => stdClass Object
(
[body_html] => bodyhtml
[published_at] => 2012-12-16T23:59:18+00:00
[created_at] => 2012-12-16T11:30:24+00:00
[updated_at] => 2012-12-18T10:52:14+00:00
[vendor] => Name
[product_type] => type
)
[1] => stdClass Object
(
[body_html] => bodyhtml
[published_at] => 2012-12-16T23:59:18+00:00
[created_at] => 2012-12-16T10:30:24+00:00
[updated_at] => 2012-12-18T10:52:14+00:00
[vendor] => Name
[product_type] => type
)
)
)
而且我需要在每个产品的创建日期之前安排它们……我尝试了各种 usort、ksort、uksort 技术,但都失败了,试图让它按照特定的顺序(按时间顺序)但失败了!
任何指导将不胜感激