📅  最后修改于: 2022-03-11 14:54:34.581000             🧑  作者: Mango
$replaced_arr = array_replace([
'key' => 'old_value',
0 => 'another_untouched_value'
],[
'key' => 'new_value'
]);
print_r($replaced_arr);
// ['key' => 'new_value', 0 => 'another_untouched_value']