I have the following array of keys and values. How can i recreate this array to make the second column as the key and 3rd column the values. Also remove all unwanted spacings.
Array
(
[16] => hasKeyframes : true
[17] => hasMetadata : true
[18] => duration : 30
[19] => audiosamplerate : 22000
[20] => audiodatarate : 68
[21] => datasize : 1103197
}
New array should look like this.
Array
(
[hasKeyframes] => true
[hasMetadata] => true
...
}