【发布时间】:2014-12-15 06:53:42
【问题描述】:
我有一个动态使用key 作为表头的数组,我想按此顺序重新排列以下内容:
fullname, age, email, tel, project, type, purpose, budget, income
默认数组元素
Array
(
[type] => Plastic
[purpose] => Sell
[budget] => 401,000-500,000
[income] => 12,000-29,999
[fullname] => John Smith
[age] => 30
[email] => john@email.com
[tel] => 12345678
[project] => Project A
)
可以通过move在代码中手动完成吗?
【问题讨论】:
-
你需要它来使用循环,排序只能按照
A-Z-0-9asc, desc 的顺序。对于自定义订单循环是要走的路