源代码:
"orange",3=>"burgundy"); print_r(array_replace($a1,$a2)); ?>
运行结果:
Array ( [0] => orange [1] => green [2] => blue [3] => burgundy )