I have a simple array where key is always followed by the value:
Array (
[0] => x
[1] => foo
[2] => y
[3] => bar
)
which I would like to convert to associative one:
Array (
[x] => foo
[y] => bar
)
What is the easiest and most elegant way to do this?