Say I have an array:
$array = Array( \'foo\' => 5, \'bar\' => 12, \'baz\' => 8 );
And I\'d like to print a line of text in m
For me the best and simplest solution is this:
$string = http_build_query($array, '', ',');
http_build_query (php.net)