WPDev.one
Core Function
View Source on Trac ↗

_http_build_query()

_http_build_query( mixed $data, mixed $prefix = null, mixed $sep = null, mixed $key = '', mixed $urlencode = true )

From php.net (modified by Mark Jaquith to behave like the native PHP5 function).

Parameters 3 required

Name / Type Description
(array

| object) $data An array or object of data. Converted to array.

Required
string

$prefix Optional. Numeric index. If set, start parameter numbering with it. Default null.

Required
string

$sep Optional. Argument separator; defaults to 'arg_separator.output'. Default null.

Required
$key
string

Optional. Used to prefix key name. Default empty string.

$urlencode
bool

Optional. Whether to use urlencode() in the result. Default true.

Return Value

(string)
The query string.

Function Information

Since Version
3.2.0
Source File
wp-includes/functions.php
Advertisement