所以我有一个深度为 1 级的关联数组(摘录如下),但有很多条目
[0] => Array
(
[Electronic] => 1
[Scope] => Intruder Alarm Systems
[Issued Date] => 2013-07-23 01:03:41
[Customer Name] => qqqq
[Certificate Number] => 1291087
)
[1] => Array
(
[Electronic] => 1
[Scope] => CCTV Systems
[Issued Date] => 2013-07-23 01:02:01
[Customer Name] => qqqqq
[Certificate Number] => 1291085
)
[2] => Array
(
[Electronic] => 1
[Scope] => CCTV Systems
[Issued Date] => 2013-07-17 07:15:06
[Customer Name] => Accent Foundation Ltd
[Certificate Number] => 1290822
)
我需要一种循环遍历该数组并对其重新排序的方法,以便最新的排在第一位,依此类推。基本上就像您从数据库中选择它并使用“ORDER BY "Issued Date" DESC"
我真的想不出这样做的方法。