我有一个数组:
Array
(
[12] => USD
[13] => 10150.00
[14] => 9850.00
[15] => SGD
[16] => 8015.40
[17] => 7915.40
[18] => HKD
[19] => 1304.60
[20] => 1288.60
...
)
我想要做的是安排它是这样的:
Array
(
[USD] => Array
(
[Buy] => 10150.00
[Sell] => 9850.00
)
[SGD] => Array
(
[Buy] => 8015.40
[Sell] => 7915.40
)
[HKD] => Array
(
[Buy] => 1304.60
[Sell] => 1288.60
)
...
)
我已经完成了很多数组函数,但仍然坚持这一点。