我想知道是否有人可以帮助我。我有一个数组,我需要按“机场零售商”、“海港零售商”等进行分组。
Array
(
[World Duty Free Group] => Airport Retailer
[Duty Free Americas Inc] => Airport Retailer
[DFASS Distribution] => Airport Retailer
[Monalisa Int'l SA] => Downtown Retailer
[DUFRY America 1] => Seaport Retailer
[Neutral Duty Free Shop] => Border Retailer
[Saint Honoré] =>
[SMT PR Duty Free Inc] => Seaport Retailer
[Aer Rianta International] => Airport Retailer
[London Supply] => Downtown Retailer
[Royal Shop Duty Free] => Downtown Retailer
[Harding Brothers Retail] => Cruise/Ferry Retailers
[Motta Internacional SA] => Airport Retailer
[Tortuga Rum Co Ltd] => Downtown Retailer
[Pama Duty Free] => Seaport Retailer
[Little Switzerland] => Downtown Retailer
....
)
结果应该是:
Array
(
[Airport Retailer] => World Duty Free Group
[Airport Retailer] => Duty Free Americas Inc
[Airport Retailer] => DFASS Distribution
...
)