svn: /phpdoc/de/trunk/reference/array/functions/ array-reduce.xml array-values.xml

[email protected] (Oliver Albers)
Newsgroups php.doc.de
Message-ID <[email protected]>
simp                                     Tue, 25 May 2010 09:33:03 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=299735

Log:
Taking ownership, Sync to EN

Changed paths:
    U   phpdoc/de/trunk/reference/array/functions/array-reduce.xml
    U   phpdoc/de/trunk/reference/array/functions/array-values.xml
svn-diffs-299735.txt (text/x-diff, 10.1 KB)
Modified: phpdoc/de/trunk/reference/array/functions/array-reduce.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/array-reduce.xml	2010-05-25 09:02:10 UTC (rev 299734)
+++ phpdoc/de/trunk/reference/array/functions/array-reduce.xml	2010-05-25 09:33:03 UTC (rev 299735)
@@ -1,36 +1,102 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 298259 Maintainer: simp Status: ready -->
 <!-- CREDITS: tom -->
-  <refentry xml:id="function.array-reduce" xmlns="http://docbook.org/ns/docbook">
-   <refnamediv>
-    <refname>array_reduce</refname>
-    <refpurpose>Iterative Reduktion eines Arrays zu einem Wert mittels einer
-     Callback Funktion</refpurpose>
-   </refnamediv>
-   <refsect1 role="description">
-    &reftitle.description;
-     <methodsynopsis>
-      <type>mixed</type><methodname>array_reduce</methodname>
-      <methodparam><type>array</type><parameter>input</parameter></methodparam>
-      <methodparam><type>callback</type><parameter>function</parameter></methodparam>
-      <methodparam choice="opt"><type>int</type><parameter>initial</parameter></methodparam>
-     </methodsynopsis>
-    <para>
-     <function>array_reduce</function> wendet die Funktion
-     <parameter>function</parameter> iterativ bei den Elementen des Arrays
-     <parameter>input</parameter> so an, dass das Array auf einen einzigen
-     Wert reduziert wird. Ist der optionale Parameter
-     <parameter>intial</parameter> angegeben, wird er am Beginn des Prozesses
-     benutzt oder als Resultat verwendet, sollte das Array leer sein.
-     Falls das Array leer ist und <parameter>initial</parameter> nicht
-     angegeben wurde, so wird <function>array_reduce</function> &null;
-     zurückgeben.
-    </para>
-    <para>
-     <example>
-      <title><function>array_reduce</function></title>
-      <programlisting role="php">
+<refentry xml:id="function.array-reduce" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+  <refname>array_reduce</refname>
+  <refpurpose>Iterative Reduktion eines Arrays zu einem Wert mittels einer
+     Callbackfunktion</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>mixed</type><methodname>array_reduce</methodname>
+   <methodparam><type>array</type><parameter>input</parameter></methodparam>
+   <methodparam><type>callback</type><parameter>function</parameter></methodparam>
+   <methodparam choice="opt"><type>mixed</type><parameter>initial</parameter><initializer>&null;</initializer></methodparam>
+  </methodsynopsis>
+  <para>
+   <function>array_reduce</function> wendet die Funktion
+   <parameter>function</parameter> iterativ auf die Elemente des Arrays
+   <parameter>input</parameter> so an, dass das Array auf einen einzigen
+   Wert reduziert wird.
+  </para>
+ </refsect1>
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>input</parameter></term>
+     <listitem>
+      <para>
+       Das Eingabe-Array.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>function</parameter></term>
+     <listitem>
+      <para>
+       Die Callbackfunktion.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>initial</parameter></term>
+     <listitem>
+      <para>
+       Ist der optionale Parameter <parameter>intial</parameter> angegeben,
+       wird er am Anfang des Prozesses benutzt oder als Resultat verwendet,
+       sollte das Array leer sein.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+ </refsect1>
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Gibt den sich ergebenden Wert zurück.
+  </para>
+  <para>
+   Falls das Array leer ist und <parameter>initial</parameter> nicht
+   angegeben wurde, so wird <function>array_reduce</function> &null;
+   zurückgeben.
+  </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.3.0</entry>
+       <entry>
+        Der von <parameter>initial</parameter> akzeptierte Datentyp wurde zu
+        <type>Mixed</type> geändert, vorher war dies <type>Integer</type>.
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </refsect1>
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title><function>array_reduce</function>-Beispiel</title>
+    <programlisting role="php">
 <![CDATA[
 <?php
 function rsum($v, $w)
@@ -49,25 +115,32 @@
 $x = array();
 $b = array_reduce($a, "rsum");
 $c = array_reduce($a, "rmul", 10);
-$d = array_reduce($x, "rsum", 1);
+$d = array_reduce($x, "rsum", "Keine Daten für die Reduktion");
 ?>
 ]]>
-      </programlisting>
-     </example>
-    </para>
+    </programlisting>
     <para>
-     Hier enthält <varname>$b</varname> <literal>15</literal>,
-     <varname>$c</varname> <literal>1200</literal> (= 10*1*2*3*4*5),
-     und <varname>$d</varname> enthält <literal>1</literal>.
+     Dies wird dazu führen, dass <varname>$b</varname> den Wert
+     <literal>15</literal> beinhaltet, <varname>$c</varname> den
+     Wert <literal>1200</literal> (= 10*1*2*3*4*5) und
+     <varname>$d</varname> den Text
+     <literal>Keine Daten für die Reduktion</literal> enthält.
     </para>
-    <para>
-     Siehe auch <function>array_filter</function>,
-     <function>array_map</function>,
-     <function>array_unique</function>, und
-     <function>array_count_values</function>.
-    </para>
-   </refsect1>
-  </refentry>
+   </example>
+  </para>
+ </refsect1>
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><function>array_filter</function></member>
+    <member><function>array_map</function></member>
+    <member><function>array_unique</function></member>
+    <member><function>array_count_values</function></member>
+   </simplelist>
+  </para>
+ </refsect1>
+</refentry>

 <!-- Keep this comment at the end of the file
 Local variables:
@@ -80,7 +153,7 @@
 sgml-indent-data:t
 indent-tabs-mode:nil
 sgml-parent-document:nil
-sgml-default-dtd-file:"../../../../manual.ced"
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
 sgml-exposed-tags:nil
 sgml-local-catalogs:nil
 sgml-local-ecat-files:nil

Modified: phpdoc/de/trunk/reference/array/functions/array-values.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/array-values.xml	2010-05-25 09:02:10 UTC (rev 299734)
+++ phpdoc/de/trunk/reference/array/functions/array-values.xml	2010-05-25 09:33:03 UTC (rev 299735)
@@ -1,35 +1,59 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 297028 Maintainer: simp Status: ready -->
 <!-- CREDITS: tom -->
-  <refentry xml:id="function.array-values" xmlns="http://docbook.org/ns/docbook">
-   <refnamediv>
-    <refname>array_values</refname>
-    <refpurpose>Liefert alle Werte eines Arrays</refpurpose>
-   </refnamediv>
-   <refsect1 role="description">
-    &reftitle.description;
-     <methodsynopsis>
-      <type>array</type><methodname>array_values</methodname>
-      <methodparam><type>array</type><parameter>input</parameter></methodparam>
-     </methodsynopsis>
-    <para>
-     <function>array_values</function> liefert alle Werte des Arrays
-     <parameter>input</parameter> mit einem numerischen Index.
-    </para>
-    <para>
-     <example>
-      <title><function>array_values</function></title>
-      <programlisting role="php">
+<refentry xml:id="function.array-values" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+  <refname>array_values</refname>
+  <refpurpose>Liefert alle Werte eines Arrays</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>array</type><methodname>array_values</methodname>
+   <methodparam><type>array</type><parameter>input</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+   <function>array_values</function> liefert alle Werte des Arrays
+   <parameter>input</parameter> mit einem numerischen Index.
+  </para>
+ </refsect1>
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>input</parameter></term>
+     <listitem>
+      <para>
+       Das Array.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+ </refsect1>
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Liefert ein indiziertes Array von Werten zurück.
+  </para>
+ </refsect1>
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title><function>array_values</function>-Beispiel</title>
+    <programlisting role="php">
 <![CDATA[
 <?php
-$array = array("größe" => "XL", "farbe" => "gold");
+$array = array("größe" => "XL", "farbe" => "gold");
 print_r(array_values($array));
 ?>
 ]]>
-      </programlisting>
-      &example.outputs;
-      <screen role="php">
+    </programlisting>
+    &example.outputs;
+    <screen role="php">
 <![CDATA[
 Array
 (
@@ -37,14 +61,19 @@
     [1] => gold
 )
 ]]>
-      </screen>
-     </example>
-    </para>
-    <para>
-     Siehe auch <function>array_keys</function>.
-    </para>
-   </refsect1>
-  </refentry>
+    </screen>
+   </example>
+  </para>
+ </refsect1>
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><function>array_keys</function></member>
+   </simplelist>
+  </para>
+ </refsect1>
+</refentry>

 <!-- Keep this comment at the end of the file
 Local variables:
@@ -57,7 +86,7 @@
 sgml-indent-data:t
 indent-tabs-mode:nil
 sgml-parent-document:nil
-sgml-default-dtd-file:"../../../../manual.ced"
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
 sgml-exposed-tags:nil
 sgml-local-catalogs:nil
 sgml-local-ecat-files:nil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.