I have an array of arrays in PHP like below
Array (
[0] => Array
(
[SEQ] => 2
[CODE] => cd1
[DESC] => desc1
)
[1] => Array
(
[SEQ] => 7
[CODE] => cd2
[DESC] => desc2
)
)
I want to convert it to like below. It should pick up the SEQ value and CODE value and assign them as the corresponding key and value
Array(
"2" => cd1,
"7" => cd2
)