有没有一种快速的方法来将一个数组的值组合为另一个数组的键?
输入:
array A => Array (
[0] => "cat"
[1] => "bat"
[2] => "hat"
[3] => "mat"
)
array B => Array (
[0] => "fur"
[1] => "ball"
[2] => "clothes"
[3] => "home"
)
预期产量:
array C => Array (
[cat] => "fur"
[bat] => "ball"
[hat] => "clothes"
[mat] => "home"
)
我该怎么办?
拉风的咖菲猫
蝴蝶刀刀