I have the following array:
Array
(
[0] => MemTotal: 4060964 kB
[1] => MemFree: 3630320 kB
[2] => MemAvailable: 3789472 kB
[3] => Buffers: 93040 kB
[4] => SwapCached: 0
[6] => Active: 306312 kB
)
I need to rewrite this array so it looks like this:
Array
(
[MemTotal] => 4060964 kB
[MemFree] => 3630320 kB
[MemAvailable] => 3789472 kB
[Buffers] => 93040 kB
[SwapCached] => 0
)
The rules would be:
How to do this parse?