It is necessary to swap two elements in the array with arbitrarily specified keys. For example, there is an array
['b' => 0, 'a' => 1, 'c' => 2] need to make an array of it
['b' => 0, 'c' => 2, 'a' => 1] (swap the values with the keys 'a' and 'c' ).
$keys = ['b','c','a']. Iterate this array and access the original by key value. - teran