所以我有一个看起来像这样的数组:
[98] => Array
(
[City] => Caracas
[Country] => Venezuela
[Continent] => Latin America
)
[99] => Array
(
[City] => Cairo
[Country] => Egypt
[Continent] => Middle East
)
[105] => Array
(
[City] => Abu Dhabi
[Country] => United Arab Emirates
[Continent] => Middle East
)
[106] => Array
(
[City] => Dubai
[Country] => United Arab Emirates
[Continent] => Middle East
)
[107] => Array
(
[City] => Montreal
[Country] => Canada
[Continent] => North America
)
我正在尝试将此数组排序为多维数组,以便它输出如下内容:
Continent
- Country Name
-- Cities under Every Country
我正在使用 PHP。谁能指出我应该如何去做的一个好的起点?