If you have an assortment built using wordpress_parse_args(). It is possible to built-in method in Wordpress to produce a url using stated array, or would I must turn to a custom function?

PHP includes a function bulit-directly into convert arrays to question strings: [cde]

Here's a good example:


So far as I understand, you do not have a particular function like this in Wordpress. However, I believe you are able to solve your condition and obtain the present URL (including args) by using this code:

$arr = array('name' => 'Eric', 'age' => 23, 'sex' => 'M');
$query = http_build_query($arr); // 'name=Eric&age=23&sex=M'
$url = 'http://example.com/?'.$query;

Note that you could replace the '' parameter, to even add your personal parameters as needed.

If for whatever reason that code does not meet your needs, the response to your question may be something similar to:

global $wp;
$current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );