cvs: phpdoc-de /reference/array/functions end.xml in-array.xml pos.xml reset.xml shuffle.xml sizeof.xml

From: Date: Wed, 19 Mar 2008 20:40:39 +0000
Subject: cvs: phpdoc-de /reference/array/functions end.xml in-array.xml pos.xml reset.xml shuffle.xml sizeof.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-2576@lists.php.net to get a copy of this message
hholzgra Wed Mar 19 20:40:39 2008 UTC Modified files: /phpdoc-de/reference/array/functions end.xml in-array.xml pos.xml reset.xml shuffle.xml sizeof.xml Log: translation updates

http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/end.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-de/reference/array/functions/end.xml diff -u phpdoc-de/reference/array/functions/end.xml:1.11 phpdoc-de/reference/array/functions/end.xml:1.12 --- phpdoc-de/reference/array/functions/end.xml:1.11 Wed Mar 19 18:56:41 2008 +++ phpdoc-de/reference/array/functions/end.xml Wed Mar 19 20:40:39 2008 @@ -1,48 +1,78 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.14 Maintainer: simp Status: ready --> -<!-- CREDITS: tom --> - <refentry xml:id="function.end" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>end</refname> - <refpurpose>Positioniert den internen Zeiger eines Arrays auf dessen letztes Element</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>mixed</type><methodname>end</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - </methodsynopsis> - <para> - <function>end</function> rückt den internen Zeiger von - <parameter>array</parameter> bis zum letzten Element vor, und gibt - dessen Wert zurück. - </para> - <para> - <example> - <title>Ein einfaches <function>end</function> Beispiel</title> - <programlisting role="php"> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.16 Maintainer: hholzgra Status: ready --> +<!-- CREDITS: tom, simp --> +<refentry xml:id="function.end" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>end</refname> + <refpurpose>Positioniert den internen Zeiger eines Arrays auf dessen letztes Element</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>end</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + </methodsynopsis> + <para> + <function>end</function> rückt den internen Zeiger von + <parameter>array</parameter> bis zum letzten Element vor, und gibt + dessen Wert zurück. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Array. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Gibt den Wert des letzten Arrayelements zurück. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>end</function> example</title> + <programlisting role="php"> <![CDATA[ <?php - $fruits = array('Apfel', 'Banane', 'Preiselbeere'); - - echo end($fruits); // Preiselbeere - +$fruits = array('apple', 'banana', 'cranberry'); +echo end($fruits); // cranberry + ?> ]]> - </programlisting> - </example> - </para> - <para> - Siehe auch <function>current</function>, - <function>each</function>, - <function>prev</function>, - <function>next</function> und - <function>reset</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>current</function></member> + <member><function>each</function></member> + <member><function>prev</function></member> + <member><function>reset</function></member> + <member><function>next</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/in-array.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-de/reference/array/functions/in-array.xml diff -u phpdoc-de/reference/array/functions/in-array.xml:1.12 phpdoc-de/reference/array/functions/in-array.xml:1.13 --- phpdoc-de/reference/array/functions/in-array.xml:1.12 Wed Mar 19 18:56:41 2008 +++ phpdoc-de/reference/array/functions/in-array.xml Wed Mar 19 20:40:39 2008 @@ -1,132 +1,195 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.14 Maintainer: simp Status: ready --> -<!-- CREDITS: tom --> - <refentry xml:id="function.in-array" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>in_array</refname> - <refpurpose>Prüft, ob ein Wert in einem Array existiert</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>in_array</methodname> - <methodparam><type>mixed</type><parameter>needle</parameter></methodparam> - <methodparam><type>array</type><parameter>haystack</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>strict</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion sucht in <parameter>haystack</parameter> nach - <parameter>needle</parameter> und gibt bei Erfolg &true; zurück, - andernfalls &false;. - </para> - <para> - Ist der dritte Parameter <parameter>strict</parameter> auf &true; - gesetzt, prüft <function>in_array</function> auch die - <link linkend="language.types">Typen</link> von - <parameter>needle</parameter> in <parameter>haystack</parameter>. - </para> - <note> - <para> - Ist <parameter>needle</parameter> ein String, erfolgt der Vergleich - unter Berücksichtigung der Groß- und Kleinschreibung. - </para> - </note> - <note> - <para> - In den PHP Versionen vor 4.2.0 durfte <parameter>needle</parameter> - kein Array sein - </para> - </note> - <para> - <example> - <title><function>in_array</function></title> - <programlisting role="php"> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.15 Maintainer: hholzgra Status: ready --> +<!-- CREDITS: tom, simp --> +<refentry xml:id="function.in-array" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>in_array</refname> + <refpurpose>Prüft, ob ein Wert in einem Array existiert</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>in_array</methodname> + <methodparam><type>mixed</type><parameter>needle</parameter></methodparam> + <methodparam><type>array</type><parameter>haystack</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>strict</parameter></methodparam> + </methodsynopsis> + <para> + Diese Funktion sucht in <parameter>haystack</parameter> nach + <parameter>needle</parameter>. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>needle</parameter></term> + <listitem> + <para> + Der gesuchte Wert. + </para> + <note> + <para> + Ist <parameter>needle</parameter> ein String so wird + bei der Suche Groß- und Kleinschreibung beachtet. + </para> + </note> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>haystack</parameter></term> + <listitem> + <para> + Das zu durchsuchende Array. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>strict</parameter></term> + <listitem> + <para> + Wenn der dritte Parameter auf &true; gesetzt wird vergleicht + <function>in_array</function> nicht nur den Wert sondern auch + den <link linkend="language.types">Typ</link> des gesuchten + Wertes <parameter>needle</parameter> mit den Elementen des + Arrays. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Gibt &true; zurück wenn <parameter>needle</parameter> im + Array gefunden wird, sonst &false;. + </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.2.0</entry> + <entry> + <parameter>needle</parameter> kann nun selbst ein Array sein. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>in_array</function> Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php $os = array("Mac", "NT", "Irix", "Linux"); if (in_array("Irix", $os)) { - echo "Irix gefunden"; + echo "Irix enthalten"; } if (in_array("mac", $os)) { - echo "mac gefunden"; + echo "mac enthalten"; } ?> ]]> - </programlisting> - <para> - Die zweite Bedingung schlägt fehl, da <function>in_array</function> - die Groß-/Kleinschreibung berücksichtigt, daher wird das obige - Programm folgendes ausgeben: - </para> - <screen role="php"> -<![CDATA[ -Irix gefunden -]]> - </screen> - </example> - </para> + </programlisting> <para> - <example> - <title><function>in_array</function> mit strict</title> - <programlisting role="php"> + Der zweite Vergleich schlägt fehl da <function>in_array</function> + Groß- und Kleinschreibung unterscheidet, die Ausgabe sieht daher + so aus: + </para> + <screen> +<![CDATA[ +Irix enthalten +]]> + </screen> + </example> + </para> + <para> + <example> + <title><function>in_array</function> Beispiel mit 'strict'</title> + <programlisting role="php"> <![CDATA[ <?php $a = array('1.10', 12.4, 1.13); if (in_array('12.4', $a, true)) { - echo "'12.4' gefunden mit strict check\n"; + echo "'12.4' bei strenger Prüfung gefunden\n"; } + if (in_array(1.13, $a, true)) { - echo "1.13 gefunden mit strict check\n"; + echo "1.13 Bei strenger Prüfung gefunden\n"; } ?> ]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -1.13 gefunden mit strict check -]]> - </screen> - </example> - </para> - <para> - <example> - <title><function>in_array</function> mit einem Array als needle</title> - <programlisting role="php"> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +1.13 bei strenger Prüfung gefunden +]]> + </screen> + </example> + </para> + <para> + <example> + <title><function>in_array</function> mit Array als Suchwert</title> + <programlisting role="php"> <![CDATA[ <?php $a = array(array('p', 'h'), array('p', 'r'), 'o'); if (in_array(array('p', 'h'), $a)) { - echo "'ph' wurde gefunden\n"; + echo "'ph' gefunden\n"; } + if (in_array(array('f', 'i'), $a)) { - echo "'fi' wurde nicht gefunden\n"; + echo "'fi' gefunden\n"; } + if (in_array('o', $a)) { - echo "'o' wurde gefunden\n"; + echo "'o' gefunden\n"; } ?> ]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ - 'ph' wurde gefunden - 'o' wurde gefunden -]]> - </screen> - </example> - </para> - <para> - Siehe auch <function>array_search</function>, - <function>array_key_exists</function> und - <function>isset</function>. - </para> - </refsect1> - </refentry> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ + 'ph' gefunden + 'o' gefunden +]]> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>array_search</function></member> + <member><function>isset</function></member> + <member><function>array_key_exists</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/pos.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-de/reference/array/functions/pos.xml diff -u phpdoc-de/reference/array/functions/pos.xml:1.9 phpdoc-de/reference/array/functions/pos.xml:1.10 --- phpdoc-de/reference/array/functions/pos.xml:1.9 Wed Mar 19 18:56:41 2008 +++ phpdoc-de/reference/array/functions/pos.xml Wed Mar 19 20:40:39 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- EN-Revision: 1.7 Maintainer: simp Status: ready --> <!-- CREDITS: tom --> <refentry xml:id="function.pos" xmlns="http://docbook.org/ns/docbook"> @@ -9,7 +9,7 @@ </refnamediv> <refsect1 role="description"> - &reftitle.description;; + &reftitle.description; <simpara> &info.function.alias; <function>current</function> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/array/functions/reset.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-de/reference/array/functions/reset.xml diff -u phpdoc-de/reference/array/functions/reset.xml:1.13 phpdoc-de/reference/array/functions/reset.xml:1.14 --- phpdoc-de/reference/array/functions/reset.xml:1.13 Wed Mar 19 18:56:41 2008 +++ phpdoc-de/reference/array/functions/reset.xml Wed Mar 19 20:40:39 2008 @@ -1,56 +1,88 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.16 Maintainer: simp Status: ready --> -<!-- CREDITS: tom --> - <refentry xml:id="function.reset" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>reset</refname> - <refpurpose>Setzt den internen Zeiger eines Arrays auf sein erstes Element</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>mixed</type><methodname>reset</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - </methodsynopsis> - <para> - <function>reset</function> setzt den internen Zeiger von - <parameter>array</parameter> auf das erste Element, und gibt den Wert - des ersten Arrayelements oder &false;, wenn das Array leer ist, zurück. - </para> - <para> - <example> - <title><function>reset</function> Beispiel</title> - <programlisting role="php"> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.17 Maintainer: hholzgra Status: ready --> +<!-- CREDITS: tom, simp --> +<refentry xml:id="function.reset" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>reset</refname> + <refpurpose>Setzt den internen Zeiger eines Arrays auf sein erstes Element</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>reset</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + </methodsynopsis> + <para> + <function>reset</function> setzt den internen Zeiger von + <parameter>array</parameter> auf das erste Element, und gibt den Wert + des ersten Arrayelements oder &false;, wenn das Array leer ist, zurück. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das Eingabearray. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Gibt das erste Element des Arrays zurück oder &false; wenn das + Array leer ist. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>reset</function> Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php -$array = array('Schritt eins', 'Schritt zwei', 'Schritt drei', 'Schritt vier'); +$array = array('step one', 'step two', 'step three', 'step four'); -// standardmäßig zeigt der Zeiger auf das erste Element -echo current($array) . "<br />\n"; // "Schritt eins" +// normalerweise steht der interne Zeiger auf dem ersten Element +echo current($array) . "<br />\n"; // "step one" -// zwei Schritte überspringen +// Zwei Elemente überspringen next($array); next($array); -echo current($array) . "<br />\n"; // "Schritt drei" +echo current($array) . "<br />\n"; // "step three" -// Zeiger zurücksetzen, wieder bei Schritt eins starten +// Zeiger zurücksetzen auf das erste Element reset($array); -echo current($array) . "<br />\n"; // "Schritt eins" +echo current($array) . "<br />\n"; // "step one" ?> ]]> - </programlisting> - </example> - </para> - <para> - Siehe auch <function>current</function>, - <function>each</function>, <function>end</function>, - <function>next</function> und <function>prev</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>current</function></member> + <member><function>each</function></member> + <member><function>end</function></member> + <member><function>next</function></member> + <member><function>prev</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/shuffle.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-de/reference/array/functions/shuffle.xml diff -u phpdoc-de/reference/array/functions/shuffle.xml:1.12 phpdoc-de/reference/array/functions/shuffle.xml:1.13 --- phpdoc-de/reference/array/functions/shuffle.xml:1.12 Wed Mar 19 18:56:41 2008 +++ phpdoc-de/reference/array/functions/shuffle.xml Wed Mar 19 20:40:39 2008 @@ -1,27 +1,50 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.16 Maintainer: simp Status: ready --> -<!-- CREDITS: tom --> - <refentry xml:id="function.shuffle" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>shuffle</refname> - <refpurpose>Mischt die Elemente eines Arrays</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>shuffle</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion mischt die Reihenfolge der Elemente eines Arrays - zufällig (shuffle). - </para> - &note.no-key-association; - <para> - <example> - <title><function>shuffle</function></title> - <programlisting role="php"> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.17 Maintainer: hholzgra Status: ready --> +<!-- CREDITS: tom, simp --> +<refentry xml:id="function.shuffle" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>shuffle</refname> + <refpurpose>Mischt die Elemente eines Arrays</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>shuffle</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + </methodsynopsis> + <para> + Diese Funktion mischt die Reihenfolge der Elemente eines Arrays + zufällig (shuffle). + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Das zu modifizierende Array. + </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>shuffle</function> Beispiel</title> + <programlisting role="php"> <![CDATA[ <?php $numbers = range(1, 20); @@ -32,20 +55,29 @@ } ?> ]]> - </programlisting> - </example> - </para> - - &note.randomseed; - - <para> - Siehe auch <function>arsort</function>, - <function>asort</function>, <function>ksort</function>, - <function>rsort</function>, <function>sort</function> und - <function>usort</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + &note.no-key-association; + &note.randomseed; + </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>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/sizeof.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-de/reference/array/functions/sizeof.xml diff -u phpdoc-de/reference/array/functions/sizeof.xml:1.9 phpdoc-de/reference/array/functions/sizeof.xml:1.10 --- phpdoc-de/reference/array/functions/sizeof.xml:1.9 Wed Mar 19 18:56:41 2008 +++ phpdoc-de/reference/array/functions/sizeof.xml Wed Mar 19 20:40:39 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- EN-Revision: 1.7 Maintainer: simp Status: ready --> <!-- CREDITS: tom --> <refentry xml:id="function.sizeof" xmlns="http://docbook.org/ns/docbook"> @@ -8,7 +8,7 @@ <refpurpose>&Alias; <function>count</function></refpurpose> </refnamediv> <refsect1 role="description"> - &reftitle.description;; + &reftitle.description; <simpara> &info.function.alias; <function>count</function>.
« previous php.doc.de (#2576) next »