php http_build_query

2012-10-16 杜世伟 Php

http_build_query -- 生成 url-encoded 之后的请求字符串
描述
string http_build_query ( array formdata [, string numeric_prefix])


使用给出的关联(或下标)数组生成一个 url-encoded 请求字符串。参数 formdata 可以是数组或包含属性的对象。一个 formdata 数组可以是简单的一维结构,也可以是由数组组成的数组(其依次可以包含其它数组)。如果在基础数组中使用了数字下标同时给出了 numeric_prefix 参数,此参数值将会作为基础数组中的数字下标元素的前缀。这是为了让 PHP 或其它 CGI 程序在稍后对数据进行解码时获取合法的变量名。

阅读全文>>

标签: PHP http_build_query

评论(0) 浏览(3912)

Powered by emlog 沪ICP备2023034538号-1