reference/mbstring/functions/mb-http-input.xml
92f1b8b177eb5730382abf9f27bae868f1bb636f
...
...
@@ -9,8 +9,8 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>mixed</type><methodname>mb_http_input</methodname>
13
-
<methodparam choice="opt"><type>string</type><parameter>type</parameter><initializer>""</initializer></methodparam>
12
+
<type class="union"><type>array</type><type>string</type><type>false</type></type><methodname>mb_http_input</methodname>
13
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>type</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<simpara>
16
16
Detects the HTTP input character encoding.
...
...
@@ -26,8 +26,8 @@
26
26
<listitem>
27
27
<para>
28
28
Input string specifies the input type.
29
-
"G" for GET, "P" for POST, "C" for COOKIE, "S" for string, "L" for list, and
30
-
"I" for the whole list (will return <type>array</type>).
29
+
<literal>"G"</literal> for GET, <literal>"P"</literal> for POST, <literal>"C"</literal> for COOKIE, <literal>"S"</literal> for string, <literal>"L"</literal> for list, and
30
+
<literal>"I"</literal> for the whole list (will return <type>array</type>).
31
31
If type is omitted, it returns the last input type processed.
32
32
</para>
33
33
</listitem>
...
...
@@ -39,12 +39,35 @@
39
39
<refsect1 role="returnvalues">
40
40
&reftitle.returnvalues;
41
41
<para>
42
-
The character encoding name, as per the <parameter>type</parameter>.
42
+
The character encoding name, as per the <parameter>type</parameter>,
43
+
or an array of character encoding names, if <parameter>type</parameter> is <literal>"I"</literal>.
43
44
If <function>mb_http_input</function> does not process specified
44
45
HTTP input, it returns &false;.
45
46
</para>
46
47
</refsect1>
47
48

49
+
<refsect1 role="changelog">
50
+
&reftitle.changelog;
51
+
<informaltable>
52
+
<tgroup cols="2">
53
+
<thead>
54
+
<row>
55
+
<entry>&Version;</entry>
56
+
<entry>&Description;</entry>
57
+
</row>
58
+
</thead>
59
+
<tbody>
60
+
<row>
61
+
<entry>8.0.0</entry>
62
+
<entry>
63
+
<parameter>type</parameter> is nullable now.
64
+
</entry>
65
+
</row>
66
+
</tbody>
67
+
</tgroup>
68
+
</informaltable>
69
+
</refsect1>
70
+

48
71
<refsect1 role="seealso">
49
72
&reftitle.seealso;
50
73
<para>
...
...
@@ -57,7 +80,6 @@
57
80
</refsect1>
58
81

59
82
</refentry>
60
-

61
83
<!-- Keep this comment at the end of the file
62
84
Local variables:
63
85
mode: sgml
64
86