函数原型
build_query( array $data ): string
函数描述
Builds URL query based on an associative and, or indexed array.
是否弃用
未弃用
函数参数
-
$data
array
Required - URL-encode key/value pairs.
函数返回值
string URL-encoded string.
函数位置
File: wp-includes/functions.php.
函数源码
function build_query( $data ) {
return _http_build_query( $data, null, '&', '', false );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |

