You can use implode()
and array_map()
PHP functions to make an array to become an argument string:
<?php
$args = array( 'auto_refresh' => '0', 'tags' => 'a,b,c' );
function rb_map( $a, $b ) {
return $a . '=' . $b;
}
$arg_string = implode('&', array_map( 'rb_map', array_keys($args), $args ) );
//var_dump($arg_string);
?>