How to make the value of the array of keys and values in php ? Do it all in one line is not going through an array, and use it for the built-in functions for working with arrays
$array = [
'0' => 'Amsterdam',
'1' => 'Berlin',
'2' => 'Busingen',
];
Result:
$result= [
'Amsterdam' => 'Amsterdam',
'Berlin' => 'Berlin',
'Busingen' => 'Busingen',
];