Without foreach, how can I turn an array like this
array(\"item1\"=>\"object1\", \"item2\"=>\"object2\",.......\"item-n\"=>\"objec
You could use http_build_query, like this:
"object1", "item2"=>"object2"); echo http_build_query($a,'',', '); ?>
Output:
item1=object1, item2=object2
Demo