Hai, can any one please help me to converts array elements to a single string

For Example :

Myarray =

Ouput should be like id='Mac,Windows,vista'


Pleaseeeeeeeee help me............