mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fixed doc bug #53371 (parse_url docs say it returns FALSE on malformed URLs. It
may return NULL.) by reworking the return values section of the parse_url() manual page. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305689 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f851c80f54
commit
b4fd230b17
1 changed files with 10 additions and 4 deletions
|
@ -61,8 +61,12 @@
|
|||
&reftitle.returnvalues;
|
||||
<para>
|
||||
On seriously malformed URLs, <function>parse_url</function> may return
|
||||
&false;. Otherwise an associative array is returned, whose components may
|
||||
be (at least one):
|
||||
&false;.
|
||||
</para>
|
||||
<para>
|
||||
If the <parameter>component</parameter> parameter is omitted, an
|
||||
associative <type>array</type> is returned. At least one element will be
|
||||
present within the array. Potential keys within this array are:
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
@ -107,8 +111,10 @@
|
|||
</itemizedlist>
|
||||
</para>
|
||||
<para>
|
||||
If the <parameter>component</parameter> parameter is specified a
|
||||
<type>string</type> is returned instead of an <type>array</type>.
|
||||
If the <parameter>component</parameter> parameter is specified,
|
||||
<function>parse_url</function> returns a <type>string</type> instead of an
|
||||
<type>array</type>. If the requested component doesn't exist within the
|
||||
given URL, &null; will be returned.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
|
Loading…
Reference in a new issue