title: Convert array to associative array with specific key and value
body: <p>I need to convert an array into associative array as first element should act as a key and second element should act as its value ?please tell me how i can do that</p>