svn: /phpdoc/de/trunk/reference/array/functions/ current.xml key.xml

[email protected] (Christoph Michael Becker)
Newsgroups php.doc.de
Message-ID <[email protected]>
cmb                                      Thu, 21 Sep 2017 10:54:27 +0000

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

Log:
Sync with EN

Changed paths:
    U   phpdoc/de/trunk/reference/array/functions/current.xml
    U   phpdoc/de/trunk/reference/array/functions/key.xml

Modified: phpdoc/de/trunk/reference/array/functions/current.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/current.xml	2017-09-21 10:53:19 UTC (rev 343124)
+++ phpdoc/de/trunk/reference/array/functions/current.xml	2017-09-21 10:54:27 UTC (rev 343125)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 310277 Maintainer: nikic Status: ready -->
+<!-- EN-Revision: 343122 Maintainer: nikic Status: ready -->
 <!-- CREDITS: tom -->
 <refentry xml:id="function.current" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -11,7 +11,7 @@
   &reftitle.description;
   <methodsynopsis>
    <type>mixed</type><methodname>current</methodname>
-   <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
+   <methodparam><type>array</type><parameter>array</parameter></methodparam>
   </methodsynopsis>
   <para>
    Jedes Array hat einen internen Zeiger auf sein "aktuelles"
@@ -48,6 +48,32 @@
   &return.falseproblem;
  </refsect1>

+ <refsect1 role="changelog">
+  &reftitle.changelog;
+  <para>
+   <informaltable>
+    <tgroup cols="2">
+     <thead>
+      <row>
+       <entry>&Version;</entry>
+       <entry>&Description;</entry>
+      </row>
+     </thead>
+     <tbody>
+      <row>
+       <entry>7.0.0</entry>
+       <entry>
+        <parameter>array</parameter> wird nun immer als Wert übergeben.
+        Vor dieser Version wurde es, wenn möglich, als Referenz übergeben, und
+        andernfalls als Wert.
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </refsect1>
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>
@@ -79,11 +105,20 @@
   &reftitle.notes;
   <note>
    <simpara>
-    Es ist nicht möglich, das Ende eines Arrays von einem <type>boolean</type>
-    &false;-Wert zu unterscheiden. Um ein Array, das &false;-Elemente beinhalten könnte,
-    korrekt zu durchlaufen werfen Sie bitte einen Blick auf die <function>each</function>-
-    Funktion.
+    Das Ende eines Arrays und das Ergebnis des Aufrufs von
+    <function>current</function>
+    mit einem leeren Array sind nicht unterscheidbar von einem
+    <type>boolean</type>
+    &false; Element. Um ein Array, das &false; Elemente enthalten kann, korrekt
+    zu Durchlaufen, siehe die Funktion <function>foreach</function>.
    </simpara>
+   <simpara>
+    Um dennoch <function>current</function> zu verwenden, und korrekt zu prüfen,
+    ob der Wert tatsächlich ein Element des Arrays ist, sollte überprüft werden,
+    ob der <function>key</function>
+    des <function>current</function> Elements sich strikt von &null;
+    unterscheidet.
+   </simpara>
   </note>
  </refsect1>


Modified: phpdoc/de/trunk/reference/array/functions/key.xml
===================================================================
--- phpdoc/de/trunk/reference/array/functions/key.xml	2017-09-21 10:53:19 UTC (rev 343124)
+++ phpdoc/de/trunk/reference/array/functions/key.xml	2017-09-21 10:54:27 UTC (rev 343125)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 339427 Maintainer: cmb Status: ready -->
+<!-- EN-Revision: 342894 Maintainer: cmb Status: ready -->
 <!-- CREDITS: tom -->

 <refentry xml:id="function.key" xmlns="http://docbook.org/ns/docbook">
@@ -13,7 +13,7 @@
   &reftitle.description;
   <methodsynopsis>
    <type>mixed</type><methodname>key</methodname>
-   <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
+   <methodparam><type>array</type><parameter>array</parameter></methodparam>
   </methodsynopsis>
   <para>
    <function>key</function> liefert das Index Element der aktuellen
@@ -48,7 +48,33 @@
   </para>
  </refsect1>

- <refsect1 role="examples">
+<refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+  <informaltable>
+   <tgroup cols="2">
+    <thead>
+     <row>
+      <entry>&Version;</entry>
+      <entry>&Description;</entry>
+     </row>
+    </thead>
+    <tbody>
+     <row>
+      <entry>7.0.0</entry>
+      <entry>
+       <parameter>array</parameter> wird nun immer als Wert übergeben.
+       Vor dieser Version wurde es, wenn möglich, als Referenz übergeben, und
+       andernfalls als Wert.
+      </entry>
+     </row>
+    </tbody>
+   </tgroup>
+  </informaltable>
+ </para>
+</refsect1>
+
+<refsect1 role="examples">
   &reftitle.examples;
   <para>
    <example>
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.