WordPress开发者和主题制作者的搜索引擎



build_query ›

Since2.3.0
已弃用n/a
build_query ( $data )
参数:
  • (array) $data URL-encode key/value pairs.
    Required: Yes
链接:
  • for more on what http_build_query() does.
查看:
返回:
  • (string) URL-encoded string.
定义在:
文档:

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.



源码

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