WordPress at a glance
function is not described

build_query() WP 2.3.0

Build URL query based on an associative and, or indexed array.

This is a convenient function for easily building url queries. It sets the separator to '&' and uses _http_build_query() function.

  • See: _http_build_query() Used to build the query

No Hooks.

Return

String. URL-encoded string.

Usage

build_query( $data );
$data(array) (required)
URL-encode key/value pairs.

Code of build query: wp-includes/functions.php VER 5.1.1

<?php
function build_query( $data ) {
	return _http_build_query( $data, null, '&', '', false );
}