<?php
$one = array(11 => 'a', 12 => 'b', 13 => 'c');
$two = array(14 => 'd', 15 => 'e');
print_r(array_merge($one, $two));
这还给我:
Array
(
[0] => a
[1] => b
[2] => c
[3] => d
[4] => e
)
我想收到:
Array
(
[11] => a
[12] => b
[13] => c
[14] => d
[15] => e
)
如何将两个数组与索引合并?这可能吗?如果是,如何?