我正在尝试在 PHP 中对数组进行排序。请看我的数组:
Array
(
[0] => Array
(
[id] => 8
[date_start_month_name] => January
[approved] => Accepted: yes
)
[1] => Array
(
[id] => 3
[date_start_month_name] => January
[approved] => Accepted: yes
)
[2] => Array
(
[id] => 2
[date_start_month_name] => March
[approved] => Accepted: yes
)
[3] => Array
(
[id] => 5
[date_start_month_name] => April
[approved] => Accepted: yes
)
)
我想使用月份名称对数组进行排序,例如:一月并得到如下内容:
Array
(
[0] => Array
(
[id] => 8
[date_start_month_name] => January
[approved] => Accepted: yes
)
[1] => Array
(
[id] => 3
[date_start_month_name] => January
[approved] => Accepted: yes
)
)
我怎样才能做到这一点?提前感谢您的帮助。最好的!