$array
=
[
'green' => 'avocado',
'red' => 'apple',
'yellow' => 'banana',
]
#1
|
array_combine
|
([0 => "green", 1 => "red", 2 => "yellow"], |