cvs: phpdoc-pl /reference/url/functions parse-url.xml
| From: | Leszek Krupinski | Date: | Wed, 16 Aug 2006 00:02:51 +0000 |
| Subject: | cvs: phpdoc-pl /reference/url/functions parse-url.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-936@lists.php.net to get a copy of this message | ||
leszek Wed Aug 16 00:02:51 2006 UTC
Modified files:
/phpdoc-pl/reference/url/functions parse-url.xml
Log:
[adi] update to rev. 1.14
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/url/functions/parse-url.xml?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc-pl/reference/url/functions/parse-url.xml
diff -u phpdoc-pl/reference/url/functions/parse-url.xml:1.7
phpdoc-pl/reference/url/functions/parse-url.xml:1.8
--- phpdoc-pl/reference/url/functions/parse-url.xml:1.7 Mon Nov 14 01:10:41 2005
+++ phpdoc-pl/reference/url/functions/parse-url.xml Wed Aug 16 00:02:51 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.13 Maintainer: adi Status: ready -->
-<!-- $Revision: 1.7 $ -->
+<!-- EN-Revision: 1.14 Maintainer: adi Status: ready -->
+<!-- $Revision: 1.8 $ -->
<refentry id="function.parse-url">
<refnamediv>
<refname>parse_url</refname>
@@ -9,8 +9,9 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>array</type><methodname>parse_url</methodname>
+ <type>mixed</type><methodname>parse_url</methodname>
<methodparam><type>string</type><parameter>url</parameter></methodparam>
+ <methodparam
choice="opt"><type>int</type><parameter>sk³adnik</parameter></methodparam>
</methodsynopsis>
<para>
Funkcja przetwarza URL i zwraca tablicê asocjacyjn± zawieraj±c± ka¿dy z
@@ -37,6 +38,23 @@
</listitem>
</varlistentry>
</variablelist>
+
+ <variablelist>
+ <varlistentry>
+ <term><parameter>sk³adnik</parameter></term>
+ <listitem>
+ <para>
+ Podaj jedn± ze sta³ych <constant>PHP_URL_SCHEME</constant>,
+ <constant>PHP_URL_HOST</constant>,
<constant>PHP_URL_PORT</constant>,
+ <constant>PHP_URL_USER</constant>,
<constant>PHP_URL_PASS</constant>,
+ <constant>PHP_URL_PATH</constant>,
<constant>PHP_URL_QUERY</constant>
+ or <constant>PHP_URL_FRAGMENT</constant> aby otrzymaæ okre¶lony sk³adnik URL
+ jako <type>string</type>.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+
</para>
</refsect1>
@@ -88,7 +106,34 @@
</simpara>
</listitem>
</itemizedlist>
- </para>
+ </para>
+ <para>
+ Je¶li parametr <parameter>sk³adnik</parameter> jest okre¶lony, zwracany jest
+ <type>string</type> zamiast <type>array</type>.
+ </para>
+ </refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.1.2</entry>
+ <entry>Dodano parametr <parameter>sk³adnik</parameter></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+
</refsect1>
<refsect1 role="examples"> &reftitle.examples;
<para>
@@ -100,6 +145,7 @@
$url = 'http://uzytkownik:haslo@serwer/sciezka?arg=wartosc#kotwica';
print_r(parse_url($url));
+echo parse_url($url, PHP_URL_PATH);
?>
]]>
</programlisting>
@@ -116,6 +162,7 @@
[query] => arg=wartosc
[fragment] => kotwica
)
+/sciezka
]]>
</screen>
</example>
@@ -142,6 +189,7 @@
<simplelist>
<member><function>pathinfo</function></member>
<member><function>parse_str</function></member>
+<member><function>http_build_query</function></member>
<member><function>dirname</function></member>
<member><function>basename</function></member>
</simplelist>