mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
added enc_type option to http_build_query.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307319 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6b605ced36
commit
475e63b089
2 changed files with 44 additions and 0 deletions
|
@ -93,6 +93,28 @@
|
|||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_QUERY_RFC1738</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_QUERY_RFC3986</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<methodparam><type>mixed</type><parameter>query_data</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>numeric_prefix</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>arg_separator</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>enc_type</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Generates a URL-encoded query string from the associative (or indexed)
|
||||
|
@ -65,6 +66,21 @@
|
|||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>enc_type</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
By default, or ,
|
||||
if <constant>PHP_QUERY_RFC1738</constant> is specified,
|
||||
RFC1738 based scheme, that is the same way as in
|
||||
<literal>application/x-www-form-urlencoded</literal> media type,
|
||||
is used. The spaces are encoded as plus (+) signs in this case.
|
||||
If <constant>PHP_QUERY_RFC3986</constant> is specified,
|
||||
it encodes the given string
|
||||
according to <link xlink:href="&url.rfc;3986">RFC 3986</link>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -100,6 +116,12 @@
|
|||
Square brackets are escaped.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.3.6</entry>
|
||||
<entry>
|
||||
The <parameter>enc_type</parameter> parameter was added.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
|
|
Loading…
Reference in a new issue