I need to convert an associative array into a new associative array where the original keys are ignored and every two consecutive values become new key-value pairs.
Input:
Array
(
[SELECT0] => 'orange'
[INPUT0] => '100'
[SELECT1] => 'bannana'
[INPUT1] => '200'
[SELECT2] => 'apple'
[INPUT2] => '300'
)
Desired output:
Array
(
[orange] => '100'
[bannana] => '200'
[apple] => '300'
)