Document new parse_str behaviour

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@32556 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Stanislav Malyshev 2000-09-12 12:10:29 +00:00
parent 58aed806b2
commit c4eb28b062

View file

@ -1083,11 +1083,14 @@ if (ord ($str) == 10) {
<funcprototype>
<funcdef>void <function>parse_str</function></funcdef>
<paramdef>string <parameter>str</parameter></paramdef>
<paramdef>array <parameter><optional>arr</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
Parses <parameter>str</parameter> as if it were the query string
passed via an URL and sets variables in the current scope.
passed via an URL and sets variables in the current scope. If
the second parameter <parameter>arr</parameter> is present,
variables are stored in this variable as an array elements instead.
</para>
<para>
<example>
@ -1101,15 +1104,6 @@ echo $second[1]; /* prints "another" */
</programlisting>
</example>
</para>
<note>
<para>
This currently requires
<link linkend="ini.register-globals">register_globals</link>=on
to be set in <filename>php.ini</filename>, this behaviour may
change in the future (After 4.0.2) and this function might well
also return an array of values.
</para>
</note>
</refsect1>
</refentry>