build_query

函数


build_query ( $data )
参数
  • (array)
    $data
    URL-encode key/value pairs.
    Required:
返回值
  • (string) URL-encoded string.
相关
  • _http_build_query()
定义位置
  • wp-includes/functions.php
    , line 1037
引入
2.3.0
弃用

Builds 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 );
}