tom Sun Jun 24 18:54:46 2001 EDT
Modified files:
/phpdoc/de/functions array.xml
Log:
added changes en-v1.68 to 1.71, now equiv. to v 1.72
Index: phpdoc/de/functions/array.xml
diff -u phpdoc/de/functions/array.xml:1.14 phpdoc/de/functions/array.xml:1.15
--- phpdoc/de/functions/array.xml:1.14 Sat Jun 23 22:35:07 2001
+++ phpdoc/de/functions/array.xml Sun Jun 24 18:54:46 2001
@@ -14,6 +14,11 @@
aus Datenbankabfragen in Arrays speichern, und verschiedene andere
Funktionen, die Arrays als Rückgabewerte haben.
</simpara>
+ <para>
+ In der Sektion <link linkend="language.types.array">Arrays</link>
+ finden Sie eine detailierte Erklärung, wie Arrays in PHP implementiert
+ sind und wie sie benutzt werden.
+ </para>
<para>
Siehe auch <function>is_array</function>, <function>explode</function>,
<function>implode</function>, <function>split</function>,
@@ -104,7 +109,7 @@
8 war.
</para>
<para>
- Dieses Beispiel erstellt ein auf dem Index 1 basierendes Array.
+ Dieses Beispiel erstellt ein auf dem Index 1 basierendes Array.
<example>
<title>1-basierter Index mit <function>array</function></title>
<programlisting role="php">
@@ -194,6 +199,7 @@
</para>
<para>
Dies speichert <literal>array("blau");</literal> in <varname>$result</varname>.
+ Mehrfache Vorkommen in $array1 werden auf die gleiche Weise behandelt.
</para>
<para>
Siehe auch <function>array_intersect</function>.
@@ -1296,14 +1302,20 @@
<title><function>array_splice</function> Beispiele</title>
<programlisting role="php">
$input = array ("rot", "grün", "blau", "gelb");
+array_splice ($input, 2);
+// $input ist nun array ("rot", "grün")
-array_splice ($input, 2); // $input ist nun array ("rot", "grün")
-array_splice ($input, 1, -1); // $input ist nun array ("rot", "gelb")
+$input = array ("rot", "grün", "blau", "gelb");
+array_splice ($input, 1, -1);
+// $input ist nun array ("rot", "gelb")
+
+$input = array ("rot", "grün", "blau", "gelb");
array_splice ($input, 1, count($input), "orange");
- // $input ist nun array ("rot", "orange")
+// $input ist nun array ("rot", "orange")
+
+$input = array ("rot", "grün", "blau", "gelb");
array_splice ($input, -1, 1, array("schwarz", "braun"));
- // $input ist nun array ("rot", "grün",
- // "blau", "schwarz", "braun")
+// $input ist nun array ("rot", "grün", "blau", "schwarz", "braun")
</programlisting>
</example>
</para>
@@ -1770,15 +1782,14 @@
</funcprototype>
</funcsynopsis>
<para>
- Liefert die Anzahl von Elementen in <parameter>var</parameter>,
- welche typischerweise ein Array ist (da alles andere ein Element
- enthält).
+ Liefert die Anzahl von Elementen in <parameter>var</parameter>, welche
+ typischerweise ein Array ist (da alles andere ein Element enthält).
</para>
<para>
Gibt 1 zurück, wenn die Variable kein Array ist.
</para>
<para>
- Gibt 0 zurück, wenn die Variable nicht gesetzt ist.
+ Gibt 0 zurück, wenn die Variable nicht gesetzt, oder ein leeres Array ist.
<warning>
<para>
<function>count</function> kann 0 zurückgeben wenn die Variable
@@ -1790,6 +1801,11 @@
</warning>
</para>
<para>
+ In der Sektion <link linkend="language.types.array">Arrays</link>
+ finden Sie eine detailierte Erklärung, wie Arrays in PHP implementiert
+ sind und wie sie benutzt werden.
+ </para>
+ <para>
<example>
<title><function>count</function></title>
<programlisting role="php">
@@ -1798,9 +1814,21 @@
$a[2] = 5;
$result = count ($a);
//$result == 3
+
+$b[0] = 7;
+$b[5] = 9;
+$b[10] = 11;
+$result = count ($b);
+// $result == 3;
</programlisting>
</example>
</para>
+ <note>
+ <para>
+ Die Funktion <function>sizeof</function> ist ein Alias für
+ <function>count</function>.
+ </para>
+ </note>
<para>
Siehe auch: <function>sizeof</function>,
<function>isset</function>, und
@@ -2806,18 +2834,18 @@
<refentry id="function.sizeof">
<refnamediv>
<refname>sizeof</refname>
- <refpurpose>Liefert die Anzahl Elemente eines Arrays</refpurpose>
+ <refpurpose>Liefert die Anzahl Elemente einer Variable</refpurpose>
</refnamediv>
<refsect1>
<title>Beschreibung</title>
<funcsynopsis>
<funcprototype>
<funcdef>int <function>sizeof</function></funcdef>
- <paramdef>array <parameter>array</parameter></paramdef>
+ <paramdef>mixed <parameter>var</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
- Gibt die Anzahl der in einem Array enthaltenen Elemente zurück.
+ Die Funktion <function>sizeof</function> ist ein Alias für
+<function>count</function>.
</para>
<para>
Siehe auch <function>count</function>.