How to convert every two consecutive values of an array into a key/value pair?

Sevaron

New Member
I have an array like the following:\[code\]array('category_name:', 'c1', 'types:', 't1')\[/code\]I want the alternate values of an array to be the values of an array:\[code\]array('category_name:' => 'c1', 'types:' => 't1')\[/code\]
 
Back
Top