Array Manipulation

Snops

New Member
I have an array something like this..\[code\][0] => english[1] => 85[2] => mathematics[3] => 75[4] => science[5] => 71[6] => social[7] => 92\[/code\]I want all values with even indexes to go as keys and all values odd indexes to go values. Like this\[code\][english] => 85,[mathematics] => 75[science] => 71[social] => 92\[/code\]Is there any good function to achieve this ? or can you help me with the code ?
 
Top