我有 2 个数组 - 经销商和分数:
经销商
Array(
[0] => Test Dealership 2
[1] => Test Dealership
[2] => Test Dealership
[3] => Test Dealership 3
[4] => Test Dealership
)
分数
Array(
[0] => 0
[1] => 427
[2] => 266
[3] => 375
[4] => 180
)
我要做的就是创建一个如下所示的排行榜:
它需要结合匹配经销商的分数。
经销商排行榜
1.测试经销商 - 873
2.测试经销商 3 - 375
3.测试经销商 2 - 0
我已经映射了数组来创建这个:
Array
(
[0] => Array
(
[0] => Test Dealership 2
[1] => 0
)
[1] => Array
(
[0] => Test Dealership
[1] => 427
)
[2] => Array
(
[0] => Test Dealership
[1] => 266
)
[3] => Array
(
[0] => Test Dealership 3
[1] => 375
)
[4] => Array
(
[0] => Test Dealership
[1] => 180
)
)
但我对如何进入下一阶段持空白。