How can I convert this flat indexed array:
Array (
[0] => fruit
[1] => apple
[2] => vegetable
[3] => corn
... etc
)
into this associative array?
Array (
[fruit] => apple
[vegetable] => corn
... etc
)
Theoretically I'd need to set each even items as keys and every odd items as the values.