cvs: phpdoc-de /reference/array/functions arsort.xml asort.xml krsort.xml ksort.xml rsort.xml sort.xml
| From: | Mark Wiesemann | Date: | Fri, 13 Feb 2009 20:55:36 +0000 |
| Subject: | cvs: phpdoc-de /reference/array/functions arsort.xml asort.xml krsort.xml ksort.xml rsort.xml sort.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-3258@lists.php.net to get a copy of this message | ||
wiesemann Fri Feb 13 20:55:36 2009 UTC
Modified files:
/phpdoc-de/reference/array/functions sort.xml arsort.xml ksort.xml
rsort.xml krsort.xml asort.xml
Log:
- take over array functions from "nobody" that are marked "critical"
- switch encoding
- sync to EN
http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/sort.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-de/reference/array/functions/sort.xml diff -u phpdoc-de/reference/array/functions/sort.xml:1.12 phpdoc-de/reference/array/functions/sort.xml:1.13 --- phpdoc-de/reference/array/functions/sort.xml:1.12 Wed Jun 18 00:08:57 2008 +++ phpdoc-de/reference/array/functions/sort.xml Fri Feb 13 20:55:36 2009 @@ -1,107 +1,148 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.25 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.28 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.sort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>sort</refname> - <refpurpose>Sortiert ein Array</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>sort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion sortiert ein Array. Die Elemente werden - aufsteigend vom niedrigsten zum höchsten Wert sortiert. - </para> - ¬e.no-key-association; - <para> - &return.success; - </para> - <para> - <example> - <title><function>sort</function></title> - <programlisting role="php"> +<refentry xml:id="function.sort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>sort</refname> + <refpurpose>Sortiert ein Array</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>sort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Diese Funktion sortiert ein Array. Die Elemente werden aufsteigend + vom niedrigsten zum höchsten Wert sortiert. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Der optionale zweite Parameter <parameter>sort_flags</parameter> + kann mit folgenden Werten genutzt werden, um das Sortierverhalten + zu ändern: + may be used to modify the sorting behavior using these values: + </para> + <para> + Sortiertypen-Flags: + <itemizedlist> + <listitem> + <simpara><constant>SORT_REGULAR</constant> - vergleiche Einträge + normal (ohne die Typen zu ändern)</simpara> + </listitem> + <listitem> + <simpara><constant>SORT_NUMERIC</constant> - vergleiche Einträge + numerisch</simpara> + </listitem> + <listitem> + <simpara><constant>SORT_STRING</constant> - vergleiche Einträge + als Strings</simpara> + </listitem> + <listitem> + <simpara><constant>SORT_LOCALE_STRING</constant> - vergleiche + Einträge als Strings, basierend auf den aktuellen Locale-Einstellungen. + Wurde in PHP 4.4.0 and 5.0.2 hinzugefügt. Vor PHP 6 wird die + System-Locale benutzt, die mittels <function>setlocale</function> + geändert werden kann. Seit PHP 6 müssen Sie die + <function>i18n_loc_set_default</function>-Funktion benutzen. + </simpara> + </listitem> + </itemizedlist> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + <para> + <example> + <title><function>sort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php $fruits = array("Zitrone", "Orange", "Banane", "Apfel"); sort($fruits); foreach ($fruits as $key => $val) { - echo "fruits[" . $key . "] = " . $val . "\n";} + echo "fruits[" . $key . "] = " . $val . "\n"; +} ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ fruits[0] = Apfel fruits[1] = Banane fruits[2] = Orange fruits[3] = Zitrone ]]> - </screen> - </example> - </para> - <para> - Die Früchte wurden in alphabetischer Reihenfolge sortiert. - </para> - <para> - Der optionale zweite Parameter <parameter>sort_flags</parameter> - kann benutzt werden, um das Sortierverhalten mit den folgenden - Flags zu beeinflussen. - </para> - <para> - Flags für Sortiertypen: - <itemizedlist> - <listitem> - <simpara><constant>SORT_REGULAR</constant> - Vergleiche Einträge normal - (keine Typen Ändern)</simpara> - </listitem> - <listitem> - <simpara><constant>SORT_NUMERIC</constant> - Vergleiche Einträge numerisch</simpara> - </listitem> - <listitem> - <simpara><constant>SORT_STRING</constant> - Vergleiche Einträge als Strings</simpara> - </listitem> - <listitem> - <simpara><constant>SORT_LOCALE_STRING</constant> - Vergleiche Einträge als String, - basierend auf den aktuellen lokalen Einstellungen. In PHP 4.4.0 und 5.0.2 hinzugefügt. - Vor PHP 6 benutzt dies die lokalen Einstellungen des Systems, welche mittels - <function>setlocale</function> umgestellt werden können. Ab PHP 6 muss dafür die - Function <function>i18n_loc_set_default</function> verwendet werden. - </simpara> - </listitem> - </itemizedlist> - </para> - <note> - <para> - Der zweite Parameter wurde in PHP 4 eingeführt. - </para> - </note> - <warning> - <simpara> - Seien Sie vorsichtig, wenn Sie Arrays mit Werten verschiedener - Typen verwenden, da <function>sort</function> unvorhergesehene - Ergebnisse verursachen kann. - </simpara> - </warning> - <para> - Siehe auch <function>arsort</function>, - <function>asort</function>, <function>ksort</function>, - <function>krsort</function>, - <function>natsort</function>, <function>natcasesort</function>, - <function>rsort</function>, <function>usort</function>, - <function>array_multisort</function> und - <function>uksort</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + <para> + Die Früchte wurden in alphabetischer Reihenfolge sortiert. + </para> + </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + ¬e.no-key-association; + <note> + <simpara> + Wie die meisten PHP-Sortierfunktionen benutzt + <function>sort</function> eine Implementierung von + <link xlink:href="&url.wiki.quicksort;">Quicksort</link>. + </simpara> + </note> + <warning> + <simpara> + Seien Sie vorsichtig bei der Sortierung von Arrays mit + unterschiedlichen Typen, weil <function>sort</function> + zu unvorhersehbaren Ergebnissen kommen kann. + </simpara> + </warning> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>arsort</function></member> + <member><function>asort</function></member> + <member><function>ksort</function></member> + <member><function>rsort</function></member> + <member><function>usort</function></member> + <member><function>uksort</function></member> + <member><function>array_multisort</function></member> + <member><function>krsort</function></member> + <member><function>natsort</function></member> + <member><function>natcasesort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/arsort.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-de/reference/array/functions/arsort.xml diff -u phpdoc-de/reference/array/functions/arsort.xml:1.11 phpdoc-de/reference/array/functions/arsort.xml:1.12 --- phpdoc-de/reference/array/functions/arsort.xml:1.11 Wed Jun 18 00:08:56 2008 +++ phpdoc-de/reference/array/functions/arsort.xml Fri Feb 13 20:55:36 2009 @@ -1,69 +1,109 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.14 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.16 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.arsort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>arsort</refname> - <refpurpose>Sortiert ein Array in umgekehrter Reihenfolge und behält die - Verbindung zum Index</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>arsort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion sortiert ein Array so, dass der Zusammenhang zwischen - den Indizes und den entsprechenden Arrayelementen erhalten bleibt. - Dies wird hauptsächlich bei assoziativen Arrays verwendet, bei denen - die aktuelle Reihenfolge der Elemente bedeutend ist. - </para> - <para> - &return.success; - </para> - <example> - <title><function>arsort</function></title> - <programlisting role="php"> +<refentry xml:id="function.arsort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>arsort</refname> + <refpurpose> + Sortiert ein Array in umgekehrter Reihenfolge und erhält die + Index-Assoziation + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>arsort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Diese Funktion sortiert ein Array so, dass der Zusammenhang zwischen + den Indizes und den entsprechenden Elementen des Arrays erhalten + bleibt. + </para> + <para> + Dies wird hauptsächlich zur Sortierung assoziativer Arrays verwendet, + bei denen die aktuelle Reihenfolge der Elemente bedeutend ist. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Sie können das Verhalten der Sortierung mittels dem optionalen + Parameter <parameter>sort_flags</parameter> beeinflussen, für + Details siehe <function>sort</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>arsort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php -$fruits = array("d"=>"Zitrone", "a"=>"Orange", "b"=>"Banane", "c"=>"Apfel"); -arsort ($fruits); +$fruits = array("d" => "Zitrone", "a" => "Orange", "b" => "Banane", "c" => "Apfel"); +arsort($fruits); foreach ($fruits as $key => $val) { echo "$key = $val\n"; } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ d = Zitrone a = Orange b = Banane c = Apfel ]]> - </screen> + </screen> </example> <para> - Die Früchte wurden in umgekehrter alphabetischer Reihenfolge - sortiert, und die Zuordnung zwischen Index und Element blieb - beibehalten. - </para> - <para> - Sie können das Verhalten der Sortierung mittels dem optionalen - Parameter <parameter>sort_flags</parameter> beeinflussen, für - Details siehe <function>sort</function>. - </para> - <para> - Siehe auch <function>asort</function>, - <function>rsort</function>, <function>ksort</function> und - <function>sort</function>. + Die Früchte wurden in umgekehrter alphabetischer Reihenfolge + sortiert und die Zuordnung zwischen Index und Element blieb + erhalten. </para> - </refsect1> - </refentry> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>asort</function></member> + <member><function>rsort</function></member> + <member><function>ksort</function></member> + <member><function>sort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/ksort.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-de/reference/array/functions/ksort.xml diff -u phpdoc-de/reference/array/functions/ksort.xml:1.13 phpdoc-de/reference/array/functions/ksort.xml:1.14 --- phpdoc-de/reference/array/functions/ksort.xml:1.13 Wed Jun 18 00:08:57 2008 +++ phpdoc-de/reference/array/functions/ksort.xml Fri Feb 13 20:55:36 2009 @@ -1,70 +1,123 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.14 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.16 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.ksort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>ksort</refname> - <refpurpose>Sortiert ein Array nach Schlüsseln</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>ksort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Sortiert ein Array nach Schlüsseln, wobei die Zuordnungen - zwischen Schlüssel und Wert erhalten bleiben. Dies ist - hauptsächlich bei assoziativen Arrays hilfreich. - </para> - <para> - &return.success; - </para> - <para> - <example> - <title><function>ksort</function></title> - <programlisting role="php"> +<refentry xml:id="function.ksort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>ksort</refname> + <refpurpose>Sortiert ein Array nach Schlüsseln</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ksort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Sortiert ein Array nach Schlüsseln, wobei die Zuordnungen + zwischen Schlüssel und Wert erhalten bleiben. Dies ist + hauptsächlich bei assoziativen Arrays hilfreich. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Sie können das Verhalten der Sortierung mittels dem optionalen + Parameter <parameter>sort_flags</parameter> beeinflussen, für + Details siehe <function>sort</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </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>4.0.0</entry> + <entry> + Der optionale <parameter>sort_flags</parameter>-Parameter wurde + hinzugefügt. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ksort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php -$fruits = array("d"=>"Zitrone", "a"=>"Orange", "b"=>"Banane", "c"=>"Apfel"); -ksort ($fruits); -foreach ($fruits as $key => $val) { +$fruits = array("d" => "Zitrone", "a" => "Orange", "b" => "Banane", "c" => "Apfel"); +ksort($fruits); +foreach ($fruits as $key => $val) { echo "$key = $val\n"; } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ a = Orange b = Banane c = Apfel d = Zitrone ]]> - </screen> - </example> - </para> - <para> - Sie können das Verhalten der Sortierung mittels dem optionalen - Parameter <parameter>sort_flags</parameter> beeinflussen, für - Details siehe <function>sort</function>. - </para> - <simpara> - Siehe auch <function>asort</function>, <function>arsort</function>, - <function>krsort</function>, <function>uksort</function>, - <function>sort</function>, <function>natsort</function> und - <function>rsort</function>. - </simpara> - <note> - <para> - Der zweite Parameter wurde mit PHP 4 eingeführt. - </para> - </note> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>asort</function></member> + <member><function>arsort</function></member> + <member><function>krsort</function></member> + <member><function>uksort</function></member> + <member><function>sort</function></member> + <member><function>natsort</function></member> + <member><function>rsort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/rsort.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-de/reference/array/functions/rsort.xml diff -u phpdoc-de/reference/array/functions/rsort.xml:1.12 phpdoc-de/reference/array/functions/rsort.xml:1.13 --- phpdoc-de/reference/array/functions/rsort.xml:1.12 Wed Jun 18 00:08:57 2008 +++ phpdoc-de/reference/array/functions/rsort.xml Fri Feb 13 20:55:36 2009 @@ -1,33 +1,63 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.15 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.17 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.rsort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>rsort</refname> - <refpurpose> - Sortiert ein Array in umgekehrter Reihenfolge - </refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>rsort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion sortiert ein Array in umgekehrter Reihenfolge (vom - höchsten zum niedrigsten Wert). - </para> - ¬e.no-key-association; - <para> - &return.success; - </para> - <para> - <example> - <title><function>rsort</function></title> - <programlisting role="php"> +<refentry xml:id="function.rsort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>rsort</refname> + <refpurpose> + Sortiert ein Array in umgekehrter Reihenfolge + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>rsort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Diese Funktion sortiert ein Array in umgekehrter Reihenfolge (vom + höchsten zum niedrigsten Wert). + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Sie können das Verhalten der Sortierung mittels dem optionalen + Parameter <parameter>sort_flags</parameter> beeinflussen, für + Details siehe <function>sort</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>rsort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php $fruits = array("Zitrone", "Orange", "Banane", "Apfel"); @@ -37,35 +67,41 @@ } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ 0 = Zitrone 1 = Orange 2 = Banane 3 = Apfel ]]> - </screen> - </example> - </para> + </screen> <para> Die Früchte wurden in umgekehrter alphabetischer Reihenfolge sortiert. </para> - <para> - Sie können das Verhalten der Sortierung mittels dem optionalen - Parameter <parameter>sort_flags</parameter> beeinflussen, für - Details siehe <function>sort</function>. - </para> - <para> - Siehe auch <function>arsort</function>, - <function>asort</function>, <function>ksort</function>, - <function>krsort</function>, - <function>sort</function> und <function>usort</function>. - </para> - </refsect1> - </refentry> + </example> + </para> + </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + ¬e.no-key-association; + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>arsort</function></member> + <member><function>asort</function></member> + <member><function>ksort</function></member> + <member><function>krsort</function></member> + <member><function>sort</function></member> + <member><function>usort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/krsort.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-de/reference/array/functions/krsort.xml diff -u phpdoc-de/reference/array/functions/krsort.xml:1.12 phpdoc-de/reference/array/functions/krsort.xml:1.13 --- phpdoc-de/reference/array/functions/krsort.xml:1.12 Wed Jun 18 00:08:57 2008 +++ phpdoc-de/reference/array/functions/krsort.xml Fri Feb 13 20:55:36 2009 @@ -1,67 +1,101 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.14 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.16 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.krsort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>krsort</refname> - <refpurpose> - Sortiert ein Array nach Schlüsseln in umgekehrter Reihenfolge - </refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>krsort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Sortiert ein Array nach Schlüsseln in umgekehrter Reihenfolge, - wobei die Zuordnungen zwischen Schlüssel und Wert erhalten - bleiben. Dies ist hauptsächlich bei assoziativen Arrays - hilfreich. - </para> - <para> - &return.success; - </para> - <para> - <example> - <title><function>krsort</function></title> - <programlisting role="php"> +<refentry xml:id="function.krsort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>krsort</refname> + <refpurpose> + Sortiert ein Array nach Schlüsseln in umgekehrter Reihenfolge + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>krsort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Sortiert ein Array nach Schlüsseln in umgekehrter Reihenfolge, + wobei die Zuordnungen zwischen Schlüssel und Wert erhalten + bleiben. Dies ist hauptsächlich bei assoziativen Arrays + hilfreich. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Sie können das Verhalten der Sortierung mittels dem optionalen + Parameter <parameter>sort_flags</parameter> beeinflussen, für + Details siehe <function>sort</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>krsort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php -$fruits = array("d"=>"Zitrone", "a"=>"Orange", "b"=>"Banane", "c"=>"Apfel"); -krsort ($fruits); +$fruits = array("d" => "Zitrone", "a" => "Orange", "b" => "Banane", "c" => "Apfel"); +krsort($fruits); foreach ($fruits as $key => $val) { echo "$key = $val\n"; } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ d = Zitrone c = Apfel b = Banane a = Orange ]]> - </screen> - </example> - </para> - <para> - Sie können das Verhalten der Sortierung mittels dem optionalen - Parameter <parameter>sort_flags</parameter> beeinflussen, für - Details siehe <function>sort</function>. - </para> - <simpara> - Siehe auch <function>asort</function>, <function>arsort</function>, - <function>ksort</function>, <function>sort</function>, - <function>natsort</function> und <function>rsort</function>. - </simpara> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>asort</function></member> + <member><function>arsort</function></member> + <member><function>ksort</function></member> + <member><function>sort</function></member> + <member><function>natsort</function></member> + <member><function>rsort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/asort.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-de/reference/array/functions/asort.xml diff -u phpdoc-de/reference/array/functions/asort.xml:1.11 phpdoc-de/reference/array/functions/asort.xml:1.12 --- phpdoc-de/reference/array/functions/asort.xml:1.11 Wed Jun 18 00:08:57 2008 +++ phpdoc-de/reference/array/functions/asort.xml Fri Feb 13 20:55:36 2009 @@ -1,68 +1,102 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.14 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.16 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.asort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>asort</refname> - <refpurpose>Sortiert ein Array und behält die Indexverbindungen</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>asort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion sortiert ein Array so, dass der Zusammenhang - zwischen den Indizes und den entsprechenden Arrayelementen - erhalten bleibt. Dies wird hauptsächlich bei assoziativen Arrays - verwendet, bei denen die aktuelle Reihenfolge der Elemente - bedeutend ist. - </para> - <para> - &return.success; - </para> - <example> - <title><function>asort</function></title> - <programlisting role="php"> +<refentry xml:id="function.asort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>asort</refname> + <refpurpose>Sortiert ein Array und erhält die Index-Assoziation</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>asort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Diese Funktion sortiert ein Array so, dass der Zusammenhang + zwischen den Indizes und den entsprechenden Elementen des Arrays + erhalten bleibt. Dies wird hauptsächlich zur Sortierung assoziativer + Arrays verwendet, bei denen die aktuelle Reihenfolge der Elemente + bedeutend ist. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Sie können das Verhalten der Sortierung mittels dem optionalen + Parameter <parameter>sort_flags</parameter> beeinflussen, für + Details siehe <function>sort</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>asort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php -$fruits = array("d"=>"Zitrone", "a"=>"Orange", "b"=>"Banane", "c"=>"Apfel"); -asort ($fruits); +$fruits = array("d" => "Zitrone", "a" => "Orange", "b" => "Banane", "c" => "Apfel"); +asort($fruits); foreach ($fruits as $key => $val) { echo "$key = $val\n"; } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ c = Apfel b = Banane a = Orange d = Zitrone ]]> - </screen> - </example> - <para> - Die Früchte wurden alphabetisch sortiert, und die Zuordnung - zwischen Index und Element blieb beibehalten - </para> - <para> - Sie können das Verhalten der Sortierung mittels dem optionalen - Parameter <parameter>sort_flags</parameter> beeinflussen, für - Details siehe <function>sort</function>. - </para> + </screen> <para> - Siehe auch <function>arsort</function>, - <function>rsort</function>, <function>ksort</function> und - <function>sort</function>. + Die Früchte wurden alphabetisch sortiert und die Zuordnung + zwischen Index und Element blieb erhalten. </para> - </refsect1> - </refentry> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>arsort</function></member> + <member><function>sort</function></member> + <member><function>ksort</function></member> + <member><function>rsort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/sort.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-de/reference/array/functions/sort.xml diff -u phpdoc-de/reference/array/functions/sort.xml:1.12 phpdoc-de/reference/array/functions/sort.xml:1.13 --- phpdoc-de/reference/array/functions/sort.xml:1.12 Wed Jun 18 00:08:57 2008 +++ phpdoc-de/reference/array/functions/sort.xml Fri Feb 13 20:55:36 2009 @@ -1,107 +1,148 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.25 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.28 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.sort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>sort</refname> - <refpurpose>Sortiert ein Array</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>sort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion sortiert ein Array. Die Elemente werden - aufsteigend vom niedrigsten zum höchsten Wert sortiert. - </para> - ¬e.no-key-association; - <para> - &return.success; - </para> - <para> - <example> - <title><function>sort</function></title> - <programlisting role="php"> +<refentry xml:id="function.sort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>sort</refname> + <refpurpose>Sortiert ein Array</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>sort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Diese Funktion sortiert ein Array. Die Elemente werden aufsteigend + vom niedrigsten zum höchsten Wert sortiert. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Der optionale zweite Parameter <parameter>sort_flags</parameter> + kann mit folgenden Werten genutzt werden, um das Sortierverhalten + zu ändern: + may be used to modify the sorting behavior using these values: + </para> + <para> + Sortiertypen-Flags: + <itemizedlist> + <listitem> + <simpara><constant>SORT_REGULAR</constant> - vergleiche Einträge + normal (ohne die Typen zu ändern)</simpara> + </listitem> + <listitem> + <simpara><constant>SORT_NUMERIC</constant> - vergleiche Einträge + numerisch</simpara> + </listitem> + <listitem> + <simpara><constant>SORT_STRING</constant> - vergleiche Einträge + als Strings</simpara> + </listitem> + <listitem> + <simpara><constant>SORT_LOCALE_STRING</constant> - vergleiche + Einträge als Strings, basierend auf den aktuellen Locale-Einstellungen. + Wurde in PHP 4.4.0 and 5.0.2 hinzugefügt. Vor PHP 6 wird die + System-Locale benutzt, die mittels <function>setlocale</function> + geändert werden kann. Seit PHP 6 müssen Sie die + <function>i18n_loc_set_default</function>-Funktion benutzen. + </simpara> + </listitem> + </itemizedlist> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + <para> + <example> + <title><function>sort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php $fruits = array("Zitrone", "Orange", "Banane", "Apfel"); sort($fruits); foreach ($fruits as $key => $val) { - echo "fruits[" . $key . "] = " . $val . "\n";} + echo "fruits[" . $key . "] = " . $val . "\n"; +} ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ fruits[0] = Apfel fruits[1] = Banane fruits[2] = Orange fruits[3] = Zitrone ]]> - </screen> - </example> - </para> - <para> - Die Früchte wurden in alphabetischer Reihenfolge sortiert. - </para> - <para> - Der optionale zweite Parameter <parameter>sort_flags</parameter> - kann benutzt werden, um das Sortierverhalten mit den folgenden - Flags zu beeinflussen. - </para> - <para> - Flags für Sortiertypen: - <itemizedlist> - <listitem> - <simpara><constant>SORT_REGULAR</constant> - Vergleiche Einträge normal - (keine Typen Ändern)</simpara> - </listitem> - <listitem> - <simpara><constant>SORT_NUMERIC</constant> - Vergleiche Einträge numerisch</simpara> - </listitem> - <listitem> - <simpara><constant>SORT_STRING</constant> - Vergleiche Einträge als Strings</simpara> - </listitem> - <listitem> - <simpara><constant>SORT_LOCALE_STRING</constant> - Vergleiche Einträge als String, - basierend auf den aktuellen lokalen Einstellungen. In PHP 4.4.0 und 5.0.2 hinzugefügt. - Vor PHP 6 benutzt dies die lokalen Einstellungen des Systems, welche mittels - <function>setlocale</function> umgestellt werden können. Ab PHP 6 muss dafür die - Function <function>i18n_loc_set_default</function> verwendet werden. - </simpara> - </listitem> - </itemizedlist> - </para> - <note> - <para> - Der zweite Parameter wurde in PHP 4 eingeführt. - </para> - </note> - <warning> - <simpara> - Seien Sie vorsichtig, wenn Sie Arrays mit Werten verschiedener - Typen verwenden, da <function>sort</function> unvorhergesehene - Ergebnisse verursachen kann. - </simpara> - </warning> - <para> - Siehe auch <function>arsort</function>, - <function>asort</function>, <function>ksort</function>, - <function>krsort</function>, - <function>natsort</function>, <function>natcasesort</function>, - <function>rsort</function>, <function>usort</function>, - <function>array_multisort</function> und - <function>uksort</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + <para> + Die Früchte wurden in alphabetischer Reihenfolge sortiert. + </para> + </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + ¬e.no-key-association; + <note> + <simpara> + Wie die meisten PHP-Sortierfunktionen benutzt + <function>sort</function> eine Implementierung von + <link xlink:href="&url.wiki.quicksort;">Quicksort</link>. + </simpara> + </note> + <warning> + <simpara> + Seien Sie vorsichtig bei der Sortierung von Arrays mit + unterschiedlichen Typen, weil <function>sort</function> + zu unvorhersehbaren Ergebnissen kommen kann. + </simpara> + </warning> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>arsort</function></member> + <member><function>asort</function></member> + <member><function>ksort</function></member> + <member><function>rsort</function></member> + <member><function>usort</function></member> + <member><function>uksort</function></member> + <member><function>array_multisort</function></member> + <member><function>krsort</function></member> + <member><function>natsort</function></member> + <member><function>natcasesort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/arsort.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-de/reference/array/functions/arsort.xml diff -u phpdoc-de/reference/array/functions/arsort.xml:1.11 phpdoc-de/reference/array/functions/arsort.xml:1.12 --- phpdoc-de/reference/array/functions/arsort.xml:1.11 Wed Jun 18 00:08:56 2008 +++ phpdoc-de/reference/array/functions/arsort.xml Fri Feb 13 20:55:36 2009 @@ -1,69 +1,109 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.14 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.16 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.arsort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>arsort</refname> - <refpurpose>Sortiert ein Array in umgekehrter Reihenfolge und behält die - Verbindung zum Index</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>arsort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion sortiert ein Array so, dass der Zusammenhang zwischen - den Indizes und den entsprechenden Arrayelementen erhalten bleibt. - Dies wird hauptsächlich bei assoziativen Arrays verwendet, bei denen - die aktuelle Reihenfolge der Elemente bedeutend ist. - </para> - <para> - &return.success; - </para> - <example> - <title><function>arsort</function></title> - <programlisting role="php"> +<refentry xml:id="function.arsort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>arsort</refname> + <refpurpose> + Sortiert ein Array in umgekehrter Reihenfolge und erhält die + Index-Assoziation + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>arsort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Diese Funktion sortiert ein Array so, dass der Zusammenhang zwischen + den Indizes und den entsprechenden Elementen des Arrays erhalten + bleibt. + </para> + <para> + Dies wird hauptsächlich zur Sortierung assoziativer Arrays verwendet, + bei denen die aktuelle Reihenfolge der Elemente bedeutend ist. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Sie können das Verhalten der Sortierung mittels dem optionalen + Parameter <parameter>sort_flags</parameter> beeinflussen, für + Details siehe <function>sort</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>arsort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php -$fruits = array("d"=>"Zitrone", "a"=>"Orange", "b"=>"Banane", "c"=>"Apfel"); -arsort ($fruits); +$fruits = array("d" => "Zitrone", "a" => "Orange", "b" => "Banane", "c" => "Apfel"); +arsort($fruits); foreach ($fruits as $key => $val) { echo "$key = $val\n"; } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ d = Zitrone a = Orange b = Banane c = Apfel ]]> - </screen> + </screen> </example> <para> - Die Früchte wurden in umgekehrter alphabetischer Reihenfolge - sortiert, und die Zuordnung zwischen Index und Element blieb - beibehalten. - </para> - <para> - Sie können das Verhalten der Sortierung mittels dem optionalen - Parameter <parameter>sort_flags</parameter> beeinflussen, für - Details siehe <function>sort</function>. - </para> - <para> - Siehe auch <function>asort</function>, - <function>rsort</function>, <function>ksort</function> und - <function>sort</function>. + Die Früchte wurden in umgekehrter alphabetischer Reihenfolge + sortiert und die Zuordnung zwischen Index und Element blieb + erhalten. </para> - </refsect1> - </refentry> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>asort</function></member> + <member><function>rsort</function></member> + <member><function>ksort</function></member> + <member><function>sort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/ksort.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-de/reference/array/functions/ksort.xml diff -u phpdoc-de/reference/array/functions/ksort.xml:1.13 phpdoc-de/reference/array/functions/ksort.xml:1.14 --- phpdoc-de/reference/array/functions/ksort.xml:1.13 Wed Jun 18 00:08:57 2008 +++ phpdoc-de/reference/array/functions/ksort.xml Fri Feb 13 20:55:36 2009 @@ -1,70 +1,123 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.14 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.16 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.ksort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>ksort</refname> - <refpurpose>Sortiert ein Array nach Schlüsseln</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>ksort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Sortiert ein Array nach Schlüsseln, wobei die Zuordnungen - zwischen Schlüssel und Wert erhalten bleiben. Dies ist - hauptsächlich bei assoziativen Arrays hilfreich. - </para> - <para> - &return.success; - </para> - <para> - <example> - <title><function>ksort</function></title> - <programlisting role="php"> +<refentry xml:id="function.ksort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>ksort</refname> + <refpurpose>Sortiert ein Array nach Schlüsseln</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ksort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Sortiert ein Array nach Schlüsseln, wobei die Zuordnungen + zwischen Schlüssel und Wert erhalten bleiben. Dies ist + hauptsächlich bei assoziativen Arrays hilfreich. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Sie können das Verhalten der Sortierung mittels dem optionalen + Parameter <parameter>sort_flags</parameter> beeinflussen, für + Details siehe <function>sort</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </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>4.0.0</entry> + <entry> + Der optionale <parameter>sort_flags</parameter>-Parameter wurde + hinzugefügt. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ksort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php -$fruits = array("d"=>"Zitrone", "a"=>"Orange", "b"=>"Banane", "c"=>"Apfel"); -ksort ($fruits); -foreach ($fruits as $key => $val) { +$fruits = array("d" => "Zitrone", "a" => "Orange", "b" => "Banane", "c" => "Apfel"); +ksort($fruits); +foreach ($fruits as $key => $val) { echo "$key = $val\n"; } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ a = Orange b = Banane c = Apfel d = Zitrone ]]> - </screen> - </example> - </para> - <para> - Sie können das Verhalten der Sortierung mittels dem optionalen - Parameter <parameter>sort_flags</parameter> beeinflussen, für - Details siehe <function>sort</function>. - </para> - <simpara> - Siehe auch <function>asort</function>, <function>arsort</function>, - <function>krsort</function>, <function>uksort</function>, - <function>sort</function>, <function>natsort</function> und - <function>rsort</function>. - </simpara> - <note> - <para> - Der zweite Parameter wurde mit PHP 4 eingeführt. - </para> - </note> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>asort</function></member> + <member><function>arsort</function></member> + <member><function>krsort</function></member> + <member><function>uksort</function></member> + <member><function>sort</function></member> + <member><function>natsort</function></member> + <member><function>rsort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/rsort.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-de/reference/array/functions/rsort.xml diff -u phpdoc-de/reference/array/functions/rsort.xml:1.12 phpdoc-de/reference/array/functions/rsort.xml:1.13 --- phpdoc-de/reference/array/functions/rsort.xml:1.12 Wed Jun 18 00:08:57 2008 +++ phpdoc-de/reference/array/functions/rsort.xml Fri Feb 13 20:55:36 2009 @@ -1,33 +1,63 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.15 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.17 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.rsort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>rsort</refname> - <refpurpose> - Sortiert ein Array in umgekehrter Reihenfolge - </refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>rsort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion sortiert ein Array in umgekehrter Reihenfolge (vom - höchsten zum niedrigsten Wert). - </para> - ¬e.no-key-association; - <para> - &return.success; - </para> - <para> - <example> - <title><function>rsort</function></title> - <programlisting role="php"> +<refentry xml:id="function.rsort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>rsort</refname> + <refpurpose> + Sortiert ein Array in umgekehrter Reihenfolge + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>rsort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Diese Funktion sortiert ein Array in umgekehrter Reihenfolge (vom + höchsten zum niedrigsten Wert). + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Sie können das Verhalten der Sortierung mittels dem optionalen + Parameter <parameter>sort_flags</parameter> beeinflussen, für + Details siehe <function>sort</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>rsort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php $fruits = array("Zitrone", "Orange", "Banane", "Apfel"); @@ -37,35 +67,41 @@ } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ 0 = Zitrone 1 = Orange 2 = Banane 3 = Apfel ]]> - </screen> - </example> - </para> + </screen> <para> Die Früchte wurden in umgekehrter alphabetischer Reihenfolge sortiert. </para> - <para> - Sie können das Verhalten der Sortierung mittels dem optionalen - Parameter <parameter>sort_flags</parameter> beeinflussen, für - Details siehe <function>sort</function>. - </para> - <para> - Siehe auch <function>arsort</function>, - <function>asort</function>, <function>ksort</function>, - <function>krsort</function>, - <function>sort</function> und <function>usort</function>. - </para> - </refsect1> - </refentry> + </example> + </para> + </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + ¬e.no-key-association; + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>arsort</function></member> + <member><function>asort</function></member> + <member><function>ksort</function></member> + <member><function>krsort</function></member> + <member><function>sort</function></member> + <member><function>usort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/krsort.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-de/reference/array/functions/krsort.xml diff -u phpdoc-de/reference/array/functions/krsort.xml:1.12 phpdoc-de/reference/array/functions/krsort.xml:1.13 --- phpdoc-de/reference/array/functions/krsort.xml:1.12 Wed Jun 18 00:08:57 2008 +++ phpdoc-de/reference/array/functions/krsort.xml Fri Feb 13 20:55:36 2009 @@ -1,67 +1,101 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.14 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.16 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.krsort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>krsort</refname> - <refpurpose> - Sortiert ein Array nach Schlüsseln in umgekehrter Reihenfolge - </refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>krsort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Sortiert ein Array nach Schlüsseln in umgekehrter Reihenfolge, - wobei die Zuordnungen zwischen Schlüssel und Wert erhalten - bleiben. Dies ist hauptsächlich bei assoziativen Arrays - hilfreich. - </para> - <para> - &return.success; - </para> - <para> - <example> - <title><function>krsort</function></title> - <programlisting role="php"> +<refentry xml:id="function.krsort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>krsort</refname> + <refpurpose> + Sortiert ein Array nach Schlüsseln in umgekehrter Reihenfolge + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>krsort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Sortiert ein Array nach Schlüsseln in umgekehrter Reihenfolge, + wobei die Zuordnungen zwischen Schlüssel und Wert erhalten + bleiben. Dies ist hauptsächlich bei assoziativen Arrays + hilfreich. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Sie können das Verhalten der Sortierung mittels dem optionalen + Parameter <parameter>sort_flags</parameter> beeinflussen, für + Details siehe <function>sort</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>krsort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php -$fruits = array("d"=>"Zitrone", "a"=>"Orange", "b"=>"Banane", "c"=>"Apfel"); -krsort ($fruits); +$fruits = array("d" => "Zitrone", "a" => "Orange", "b" => "Banane", "c" => "Apfel"); +krsort($fruits); foreach ($fruits as $key => $val) { echo "$key = $val\n"; } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ d = Zitrone c = Apfel b = Banane a = Orange ]]> - </screen> - </example> - </para> - <para> - Sie können das Verhalten der Sortierung mittels dem optionalen - Parameter <parameter>sort_flags</parameter> beeinflussen, für - Details siehe <function>sort</function>. - </para> - <simpara> - Siehe auch <function>asort</function>, <function>arsort</function>, - <function>ksort</function>, <function>sort</function>, - <function>natsort</function> und <function>rsort</function>. - </simpara> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>asort</function></member> + <member><function>arsort</function></member> + <member><function>ksort</function></member> + <member><function>sort</function></member> + <member><function>natsort</function></member> + <member><function>rsort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/asort.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-de/reference/array/functions/asort.xml diff -u phpdoc-de/reference/array/functions/asort.xml:1.11 phpdoc-de/reference/array/functions/asort.xml:1.12 --- phpdoc-de/reference/array/functions/asort.xml:1.11 Wed Jun 18 00:08:57 2008 +++ phpdoc-de/reference/array/functions/asort.xml Fri Feb 13 20:55:36 2009 @@ -1,68 +1,102 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.14 Maintainer: nobody Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.16 Maintainer: wiesemann Status: ready --> <!-- CREDITS: tom --> - <refentry xml:id="function.asort" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>asort</refname> - <refpurpose>Sortiert ein Array und behält die Indexverbindungen</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>asort</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion sortiert ein Array so, dass der Zusammenhang - zwischen den Indizes und den entsprechenden Arrayelementen - erhalten bleibt. Dies wird hauptsächlich bei assoziativen Arrays - verwendet, bei denen die aktuelle Reihenfolge der Elemente - bedeutend ist. - </para> - <para> - &return.success; - </para> - <example> - <title><function>asort</function></title> - <programlisting role="php"> +<refentry xml:id="function.asort" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>asort</refname> + <refpurpose>Sortiert ein Array und erhält die Index-Assoziation</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>asort</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam> + </methodsynopsis> + <para> + Diese Funktion sortiert ein Array so, dass der Zusammenhang + zwischen den Indizes und den entsprechenden Elementen des Arrays + erhalten bleibt. Dies wird hauptsächlich zur Sortierung assoziativer + Arrays verwendet, bei denen die aktuelle Reihenfolge der Elemente + bedeutend ist. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabe-Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sort_flags</parameter></term> + <listitem> + <para> + Sie können das Verhalten der Sortierung mittels dem optionalen + Parameter <parameter>sort_flags</parameter> beeinflussen, für + Details siehe <function>sort</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>asort</function>-Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php -$fruits = array("d"=>"Zitrone", "a"=>"Orange", "b"=>"Banane", "c"=>"Apfel"); -asort ($fruits); +$fruits = array("d" => "Zitrone", "a" => "Orange", "b" => "Banane", "c" => "Apfel"); +asort($fruits); foreach ($fruits as $key => $val) { echo "$key = $val\n"; } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ c = Apfel b = Banane a = Orange d = Zitrone ]]> - </screen> - </example> - <para> - Die Früchte wurden alphabetisch sortiert, und die Zuordnung - zwischen Index und Element blieb beibehalten - </para> - <para> - Sie können das Verhalten der Sortierung mittels dem optionalen - Parameter <parameter>sort_flags</parameter> beeinflussen, für - Details siehe <function>sort</function>. - </para> + </screen> <para> - Siehe auch <function>arsort</function>, - <function>rsort</function>, <function>ksort</function> und - <function>sort</function>. + Die Früchte wurden alphabetisch sortiert und die Zuordnung + zwischen Index und Element blieb erhalten. </para> - </refsect1> - </refentry> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>arsort</function></member> + <member><function>sort</function></member> + <member><function>ksort</function></member> + <member><function>rsort</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: