$array
=
[
0 => 'grape',
1 => 'banana',
2 => 'apple',
3 => 'raspberry',
4 => 'cherry',
]
#1
|
array_replace
|
([0 => "orange", 1 => "banana", 2 => "apple", 3 => "raspberry"], |