我有以下两个数组。我需要在 PHP 中将它们组合在一起,以便将两个数组中 index[i] 处的值添加到最终数组中的同一索引中。
阵列 1
[0] => '123456'
[1] => '654123'
[2] => '987456'
[3] => '489522'
[4] => '014779'
阵列 2
[0] => 'feature'
[1] => 'promo'
[2] => 'other'
[3] => 'start'
[4] => 'end'
我需要的最终数组
[0] => ['123456', 'feature']
[1] => ['654123', 'promo']
[2] => ['987456', 'other']
[3] => ['489522', 'start']
[4] => ['014779', 'end']