Here are the steps that you need to follow in order to solve your problem:
Use
str_getcsv
to parse csv string into array.Use for loop to iterate through the array that you will get from step-1.
Within for loop, change the key to what you want. You can do this easily by making entirely new array with the keys you want.