svn: /phpdoc/de/trunk/ language/control-structures/break.xml language/predefined/serializable.xml reference/array/functions/array-keys.xml reference/array/functions/array-merge-recursive.xml reference/array/functions/array-multisort.xml reference/array/functions/array-pop.xml reference/array/functions/array-replace.xml reference/array/functions/array-slice.xml reference/array/functions/array-walk.xml reference/array/functions/end.xml reference/array/functions/reset.xml
[email protected] (Christoph Michael Becker)
| Newsgroups | php.doc.de |
|---|---|
| Message-ID | <[email protected]> |
cmb Mon, 06 Aug 2018 10:47:39 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=345438
Log:
Sync with EN
Changed paths:
U phpdoc/de/trunk/language/control-structures/break.xml
U phpdoc/de/trunk/language/predefined/serializable.xml
U phpdoc/de/trunk/reference/array/functions/array-keys.xml
U phpdoc/de/trunk/reference/array/functions/array-merge-recursive.xml
U phpdoc/de/trunk/reference/array/functions/array-multisort.xml
U phpdoc/de/trunk/reference/array/functions/array-pop.xml
U phpdoc/de/trunk/reference/array/functions/array-replace.xml
U phpdoc/de/trunk/reference/array/functions/array-slice.xml
U phpdoc/de/trunk/reference/array/functions/array-walk.xml
U phpdoc/de/trunk/reference/array/functions/end.xml
U phpdoc/de/trunk/reference/array/functions/reset.xml
svn-diffs-345438.txt
(text/x-diff, 13.5 KB)
Modified: phpdoc/de/trunk/language/control-structures/break.xml
===================================================================
--- phpdoc/de/trunk/language/control-structures/break.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/language/control-structures/break.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 345105 Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 345401 Maintainer: hholzgra Status: ready -->
<!-- Rev-Revision: 1.1 Reviewer: sammywg -->
<sect1 xml:id="control-structures.break" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -24,7 +24,7 @@
<![CDATA[
<?php
$arr = array('eins', 'zwei', 'drei', 'vier', 'stop', 'fünf');
-while (list(, $val) = each($arr)) {
+foreach ($arr as $val) {
if ($val == 'stop') {
break; /* Sie könnten hier auch 'break 1;' schreiben. */
}
Modified: phpdoc/de/trunk/language/predefined/serializable.xml
===================================================================
--- phpdoc/de/trunk/language/predefined/serializable.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/language/predefined/serializable.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 343679 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 345303 Maintainer: sammywg Status: ready -->
<phpdoc:classref xml:id="class.serializable" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
@@ -28,13 +28,6 @@
Konstruktors __construct() aufgerufen. Falls notwendig, kann der
Standardkonstruktor innerhalb von unserialize() aufgerufen werden.
</para>
- <para>
- Beachte: wenn ein altes Exemplar einer Klasse, die dieses Interface nun
- implementiert, aber serialisiert wurde bevor die Klasse das Interface
- implementierte, deserialisiert wird, wird <link
- linkend="object.wakeup">__wakeup()</link> anstelle der unserialize Methode
- aufgerufen, was für Migrationzwecke nützlich sein kann.
- </para>
</section>
<!-- }}} -->
Modified: phpdoc/de/trunk/reference/array/functions/array-keys.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/array-keys.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/reference/array/functions/array-keys.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 343899 Maintainer: wiesemann Status: ready -->
+<!-- EN-Revision: 345357 Maintainer: wiesemann Status: ready -->
<!-- CREDITS: tom -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-keys">
<refnamediv>
@@ -13,7 +13,8 @@
<methodsynopsis>
<type>array</type><methodname>array_keys</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
- <methodparam choice="opt"><type>mixed</type><parameter>search_value</parameter><initializer>&null;</initializer></methodparam>
+ <!-- $seach_value has no default value, see <https://bugs.php.net/65904> -->
+ <methodparam choice="opt"><type>mixed</type><parameter>search_value</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>strict</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
<para>
Modified: phpdoc/de/trunk/reference/array/functions/array-merge-recursive.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/array-merge-recursive.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/reference/array/functions/array-merge-recursive.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 330179 Maintainer: wiesemann Status: ready -->
+<!-- EN-Revision: 345370 Maintainer: wiesemann Status: ready -->
<!-- CREDITS: tom -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-merge-recursive">
<refnamediv>
Modified: phpdoc/de/trunk/reference/array/functions/array-multisort.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/array-multisort.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/reference/array/functions/array-multisort.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 340377 Maintainer: gerdtsteltner Status: ready -->
+<!-- EN-Revision: 345315 Maintainer: gerdtsteltner Status: ready -->
<refentry xml:id="function.array-multisort" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>array_multisort</refname>
@@ -301,6 +301,10 @@
$auflage[$key] = $row['Auflage'];
}
+// von PHP 5.5.0 an kann array_column() statt des obigen Codes verwendet werden
+$band = array_column($data, 'Band');
+$auflage = array_column($data, 'Auflage');
+
// Die Daten mit 'Band' absteigend, die mit 'Auflage' aufsteigend sortieren.
// Geben Sie $data als letzten Parameter an, um nach dem gemeinsamen
// Schlüssel zu sortieren.
Modified: phpdoc/de/trunk/reference/array/functions/array-pop.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/array-pop.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/reference/array/functions/array-pop.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 335229 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 345420 Maintainer: simp Status: ready -->
<!-- CREDITS: tom, wiesemann -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-pop">
@@ -16,7 +16,7 @@
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
</methodsynopsis>
<para>
- <function>array_pop</function> liefert den letzten Wert von
+ <function>array_pop</function> liefert den Wert des letzten Elements von
<parameter>array</parameter>, und verkürzt
<parameter>array</parameter> um ein Element.
</para>
@@ -42,7 +42,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Gibt den letzten Wert von <parameter>array</parameter> zurück.
+ Gibt den Wert des letzten Elements von <parameter>array</parameter> zurück.
Wenn <parameter>array</parameter> leer ist (oder kein Array),
wird &null; zurückgegeben.
</para>
Modified: phpdoc/de/trunk/reference/array/functions/array-replace.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/array-replace.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/reference/array/functions/array-replace.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 332158 Maintainer: cmb Status: ready -->
+<!-- EN-Revision: 345370 Maintainer: cmb Status: ready -->
<!-- CREDITS: Christian Jantz -->
<refentry xml:id="function.array-replace" xmlns="http://docbook.org/ns/docbook">
@@ -14,7 +14,6 @@
<methodsynopsis>
<type>array</type><methodname>array_replace</methodname>
<methodparam><type>array</type><parameter>array1</parameter></methodparam>
- <methodparam><type>array</type><parameter>array2</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam>
</methodsynopsis>
<para>
@@ -45,18 +44,10 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>array2</parameter></term>
- <listitem>
- <para>
- Das Array aus dem Elemente extrahiert werden.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
<term><parameter>...</parameter></term>
<listitem>
<para>
- Weitere Arrays, aus denen Elemente extrahiert werden.
+ Arrays, aus denen Elemente extrahiert werden.
Werte späterer Arrays überschreiben die vorherigen Werte.
</para>
</listitem>
Modified: phpdoc/de/trunk/reference/array/functions/array-slice.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/array-slice.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/reference/array/functions/array-slice.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 343899 Maintainer: gerdtsteltner Status: ready -->
+<!-- EN-Revision: 345313 Maintainer: gerdtsteltner Status: ready -->
<!-- CREDITS: tom -->
<refentry xml:id="function.array-slice" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -43,6 +43,8 @@
Sequenz bei diesem Offset in dem <parameter>array</parameter>.
Ist <parameter>offset</parameter> negativ, beginnt die Sequenz
so viele Elemente vor dem Ende von <parameter>array</parameter>.
+ Es ist zu beachten, dass der <parameter>offset</parameter> die Position
+ im Array angibt, nicht den Schlüssel.
</para>
</listitem>
</varlistentry>
@@ -67,9 +69,10 @@
<listitem>
<para>
Beachten Sie, dass <function>array_slice</function>
- standardmäßig numerische Schlüssel des Arrays zurücksetzt und neu vergibt.
+ standardmäßig ganzzahlige Schlüssel des Arrays zurücksetzt und neu vergibt.
Sie können dieses Verhalten ändern, indem Sie
<parameter>preserve_keys</parameter> auf &true; setzen.
+ Zeichenkettenschlüssel werden immer erhalten, unabhängig von diesem Parameter.
</para>
</listitem>
</varlistentry>
@@ -154,6 +157,60 @@
</screen>
</example>
</para>
+ <para>
+ <example>
+ <title><function>array_slice</function> und ein mit 1 beginnendes Array</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$input = array(1 => "a", "b", "c", "d", "e");
+print_r(array_slice($input, 1, 2));
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+Array
+(
+ [0] => b
+ [1] => c
+)
+]]>
+ </screen>
+ </example>
+ </para>
+ <para>
+ <example>
+ <title><function>array_slice</function> und Array mit gemischten Schlüsseln</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$ar = array('a'=>'Apfel', 'b'=>'Banane', '42'=>'Pfirsisch', 'd'=>'Orange');
+print_r(array_slice($ar, 0, 3));
+print_r(array_slice($ar, 0, 3, true));
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+Array
+(
+ [a] => Apfel
+ [b] => Banane
+ [0] => Pfirsisch
+)
+Array
+(
+ [a] => Apfel
+ [b] => Banane
+ [42] => Pfirsisch
+)
+]]>
+ </screen>
+ </example>
+ </para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
Modified: phpdoc/de/trunk/reference/array/functions/array-walk.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/array-walk.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/reference/array/functions/array-walk.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 342934 Maintainer: wiesemann Status: ready -->
+<!-- EN-Revision: 345396 Maintainer: wiesemann Status: ready -->
<!-- CREDITS: tom -->
<refentry xml:id="function.array-walk" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -91,7 +91,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- &return.success;
+ Gibt &true; zurück.
</para>
</refsect1>
<refsect1 role="errors">
Modified: phpdoc/de/trunk/reference/array/functions/end.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/end.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/reference/array/functions/end.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 345342 Maintainer: hholzgra Status: ready -->
<!-- CREDITS: tom, simp -->
<refentry xml:id="function.end" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -73,6 +73,7 @@
<member><function>prev</function></member>
<member><function>reset</function></member>
<member><function>next</function></member>
+ <member><function>array_key_last</function></member>
</simplelist>
</para>
</refsect1>
Modified: phpdoc/de/trunk/reference/array/functions/reset.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/reset.xml 2018-08-06 10:12:18 UTC (rev 345437)
+++ phpdoc/de/trunk/reference/array/functions/reset.xml 2018-08-06 10:47:39 UTC (rev 345438)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 343965 Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 345342 Maintainer: hholzgra Status: ready -->
<!-- CREDITS: tom, simp -->
<refentry xml:id="function.reset" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -94,6 +94,7 @@
<member><function>end</function></member>
<member><function>next</function></member>
<member><function>prev</function></member>
+ <member><function>array_key_first</function></member>
</simplelist>
</para>
</refsect1>