cvs: phpdoc-de /reference/array/functions array-fill.xml array-flip.xml array-map.xml array-merge.xml array-pop.xml array-push.xml array-shift.xml
array-splice.xml array-unique.xml array-values.xml array.xml each.xml extract.xml range.xml usort.xml

From: Date: Fri, 07 Feb 2003 22:58:47 +0000
Subject: cvs: phpdoc-de /reference/array/functions array-fill.xml array-flip.xml array-map.xml array-merge.xml array-pop.xml array-push.xml array-shift.xml
array-splice.xml array-unique.xml array-values.xml array.xml each.xml extract.xml range.xml usort.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-500@lists.php.net to get a copy of this message
tom Fri Feb 7 17:58:47 2003 EDT Modified files: /phpdoc-de/reference/array/functions array-fill.xml array-flip.xml array-map.xml array-merge.xml array-pop.xml array-push.xml array-shift.xml array-splice.xml array-unique.xml array-values.xml array.xml each.xml extract.xml range.xml usort.xml Log: sync to en

Index: phpdoc-de/reference/array/functions/array-fill.xml diff -u phpdoc-de/reference/array/functions/array-fill.xml:1.4 phpdoc-de/reference/array/functions/array-fill.xml:1.5 --- phpdoc-de/reference/array/functions/array-fill.xml:1.4 Fri May 31 13:47:06 2002 +++ phpdoc-de/reference/array/functions/array-fill.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: tom Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: tom Status: ready --> <refentry id="function.array-fill"> <refnamediv> <refname>array_fill</refname> @@ -26,10 +26,11 @@ <programlisting role="php"> <![CDATA[ $a = array_fill(5, 6, 'Banane'); +print_r($a); ]]> </programlisting> <para> - $a würde mit <function>print_r</function> folgende Inhalte ausgeben: + Nun ist <varname>$a</varname>: <screen> <![CDATA[ Array Index: phpdoc-de/reference/array/functions/array-flip.xml diff -u phpdoc-de/reference/array/functions/array-flip.xml:1.5 phpdoc-de/reference/array/functions/array-flip.xml:1.6 --- phpdoc-de/reference/array/functions/array-flip.xml:1.5 Sat Jan 11 04:46:23 2003 +++ phpdoc-de/reference/array/functions/array-flip.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.5 Maintainer: tom Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: tom Status: ready --> <refentry id="function.array-flip"> <refnamediv> <refname>array_flip</refname> @@ -56,7 +56,7 @@ ]]> </programlisting> <para> - Nun ist $trans: + Nun ist <varname>$trans</varname>: <screen> <![CDATA[ Array Index: phpdoc-de/reference/array/functions/array-map.xml diff -u phpdoc-de/reference/array/functions/array-map.xml:1.5 phpdoc-de/reference/array/functions/array-map.xml:1.6 --- phpdoc-de/reference/array/functions/array-map.xml:1.5 Sat Jan 11 10:19:37 2003 +++ phpdoc-de/reference/array/functions/array-map.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.6 Maintainer: tom Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.8 Maintainer: tom Status: ready --> <refentry id="function.array-map"> <refnamediv> <refname>array_map</refname> @@ -10,18 +10,18 @@ </refnamediv> <refsect1> <title>Beschreibung</title> - <methodsynopsis> - <type>array</type><methodname>array_map</methodname> - <methodparam><type>callback</type><parameter>function</parameter></methodparam> - <methodparam><type>array</type><parameter>arr1</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>arr2...</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>array</type><methodname>array_map</methodname> + <methodparam><type>mixed</type><parameter>callback</parameter></methodparam> + <methodparam><type>array</type><parameter>arr1</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam> + </methodsynopsis> <para> <function>array_map</function> gibt ein Array mit allen Elementen von <parameter>arr1</parameter> zurück, nachdem die Callback-Funktion - <parameter>function</parameter> auf jedes einzelne Element angewandt + <parameter>callback</parameter> auf jedes einzelne Element angewandt wurde. Die Anzahl Parameter, welche die Callback-Funktion - <parameter>function</parameter> akzeptiert, sollte der Anzahl der an + <parameter>callback</parameter> akzeptiert, sollte der Anzahl der an <function>array_map</function> übergebenen Arrays entsprechen. </para> <para> Index: phpdoc-de/reference/array/functions/array-merge.xml diff -u phpdoc-de/reference/array/functions/array-merge.xml:1.5 phpdoc-de/reference/array/functions/array-merge.xml:1.6 --- phpdoc-de/reference/array/functions/array-merge.xml:1.5 Sun Oct 6 16:40:51 2002 +++ phpdoc-de/reference/array/functions/array-merge.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.6 Maintainer: tom Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: tom Status: ready --> <refentry id="function.array-merge"> <refnamediv> <refname>array_merge</refname> @@ -35,10 +35,11 @@ $array1 = array ("farbe" => "rot", 2, 4); $array2 = array ("a", "b", "farbe" => "grün", "form" => "trapezoid", 4); $result = array_merge ($array1, $array2); +print_r($result); ]]> </programlisting> <para> - Das <literal>$result</literal> Ergebnis ist: + Nun ist <literal>$result</literal>: <screen role="php"> <![CDATA[ Array Index: phpdoc-de/reference/array/functions/array-pop.xml diff -u phpdoc-de/reference/array/functions/array-pop.xml:1.6 phpdoc-de/reference/array/functions/array-pop.xml:1.7 --- phpdoc-de/reference/array/functions/array-pop.xml:1.6 Thu Jan 16 14:59:25 2003 +++ phpdoc-de/reference/array/functions/array-pop.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.4 Maintainer: tom Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: tom Status: ready --> <refentry id="function.array-pop"> <refnamediv> <refname>array_pop</refname> @@ -19,13 +19,19 @@ <parameter>array</parameter> leer (oder kein Array), wird &null; zurückgegeben. </para> + + &array.resetspointer; + <para> <example> <title><function>array_pop</function></title> <programlisting role="php"> <![CDATA[ +<?php $stack = array ("Orange", "Banane", "Apfel", "Himbeere"); $fruit = array_pop ($stack); +print_r($stack); +?> ]]> </programlisting> <para> Index: phpdoc-de/reference/array/functions/array-push.xml diff -u phpdoc-de/reference/array/functions/array-push.xml:1.4 phpdoc-de/reference/array/functions/array-push.xml:1.5 --- phpdoc-de/reference/array/functions/array-push.xml:1.4 Fri May 31 13:47:06 2002 +++ phpdoc-de/reference/array/functions/array-push.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: tom Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: tom Status: ready --> <refentry id="function.array-push"> <refnamediv> <refname>array_push</refname> @@ -40,6 +40,7 @@ <![CDATA[ $stack = array ("Orange", "Banane"); array_push ($stack, "Apfel", "Himbeere"); +print_r($stack); ]]> </programlisting> <para> Index: phpdoc-de/reference/array/functions/array-shift.xml diff -u phpdoc-de/reference/array/functions/array-shift.xml:1.5 phpdoc-de/reference/array/functions/array-shift.xml:1.6 --- phpdoc-de/reference/array/functions/array-shift.xml:1.5 Sun Oct 6 16:40:51 2002 +++ phpdoc-de/reference/array/functions/array-shift.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.5 Maintainer: tom Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: tom Status: ready --> <refentry id="function.array-shift"> <refnamediv> <refname>array_shift</refname> @@ -23,13 +23,19 @@ unverändert. Ist <parameter>array</parameter> leer (oder kein Array), wird &null; zurückgegeben. </para> + + &array.resetspointer; + <para> <example> <title><function>array_shift</function></title> <programlisting role="php"> <![CDATA[ +<?php $stack = array ("Orange", "Banane", "Apfel", "Himbeere"); $fruit = array_shift ($stack); +print_r($stack); +?> ]]> </programlisting> <para> Index: phpdoc-de/reference/array/functions/array-splice.xml diff -u phpdoc-de/reference/array/functions/array-splice.xml:1.5 phpdoc-de/reference/array/functions/array-splice.xml:1.6 --- phpdoc-de/reference/array/functions/array-splice.xml:1.5 Sun Oct 6 16:40:51 2002 +++ phpdoc-de/reference/array/functions/array-splice.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.5 Maintainer: tom Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: tom Status: ready --> <refentry id="function.array-splice"> <refnamediv> <refname>array_splice</refname> @@ -62,16 +62,53 @@ </para> <para> Hier einige Entsprechungen: - <programlisting role="php"> -<![CDATA[ -array_push ($input, $x, $y) array_splice ($input, count ($input), 0, - array ($x, $y)) -array_pop ($input) array_splice ($input, -1) -array_shift ($input) array_splice ($input, 0, 1) -array_unshift ($input, $x, $y) array_splice ($input, 0, 0, array ($x, $y)) -$input[$x] = $y array_splice ($input, $x, 1, $y) -]]> - </programlisting> + <table> + <title><function>array_splice</function> equivalents</title> + <tgroup cols="2"> + <tbody> + <row> + <entry> + array_push($input, $x, $y) + </entry> + <entry> + array_splice($input, count($input), 0, array($x, $y)) + </entry> + </row> + <row> + <entry> + array_pop($input) + </entry> + <entry> + array_splice($input, -1) + </entry> + </row> + <row> + <entry> + array_shift($input) + </entry> + <entry> + array_splice($input, -1) + </entry> + </row> + <row> + <entry> + array_unshift($input, $x, $y) + </entry> + <entry> + array_splice($input, 0, 0, array($x, $y)) + </entry> + </row> + <row> + <entry> + $a[$x] = $y + </entry> + <entry> + array_splice($input, $x, 1, $y) + </entry> + </row> + </tbody> + </tgroup> + </table> </para> <para> Gibt das Array mit den entfernten Elementen zurück. Index: phpdoc-de/reference/array/functions/array-unique.xml diff -u phpdoc-de/reference/array/functions/array-unique.xml:1.4 phpdoc-de/reference/array/functions/array-unique.xml:1.5 --- phpdoc-de/reference/array/functions/array-unique.xml:1.4 Fri May 31 13:47:06 2002 +++ phpdoc-de/reference/array/functions/array-unique.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: tom Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.10 Maintainer: tom Status: ready --> <refentry id="function.array-unique"> <refnamediv> <refname>array_unique</refname> @@ -35,30 +35,27 @@ Das erste Element wird verwendet. </simpara> </note> - <warning> - <simpara> - Dies war in PHP 4.0.4 fehlerhaft! - </simpara> - </warning> <para> <example> <title><function>array_unique</function> example</title> <programlisting role="php"> <![CDATA[ +<?php $input = array ("a" => "grün", "rot", "b" => "grün", "blau", "rot"); $result = array_unique ($input); print_r($result); +?> ]]> </programlisting> <para> - Dieses Programm wird folgendes ausgeben: + Dies wird folgendes ausgeben: <screen role="php"> <![CDATA[ Array ( - [b] => grün + [a] => grün + [0] => rot [1] => blau - [2] => rot ) ]]> </screen> @@ -70,20 +67,20 @@ <title><function>array_unique</function> und Typen</title> <programlisting role="php"> <![CDATA[ +<?php $input = array (4,"4","3",4,3,"3"); $result = array_unique ($input); var_dump($result); +?> ]]> </programlisting> <para> - Dieses Programm wird folgendes ausgeben (PHP 4.0.6): + Dies wird folgendes ausgeben: <screen role="php"> <![CDATA[ array(2) { - [3]=> - int(4) - [4]=> - int(3) + [0] => int(4) + [2] => string(1) "3" } ]]> </screen> Index: phpdoc-de/reference/array/functions/array-values.xml diff -u phpdoc-de/reference/array/functions/array-values.xml:1.4 phpdoc-de/reference/array/functions/array-values.xml:1.5 --- phpdoc-de/reference/array/functions/array-values.xml:1.4 Fri May 31 13:47:06 2002 +++ phpdoc-de/reference/array/functions/array-values.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: tom Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: tom Status: ready --> <refentry id="function.array-values"> <refnamediv> <refname>array_values</refname> @@ -14,7 +14,7 @@ </methodsynopsis> <para> <function>array_values</function> liefert alle Werte des Arrays - <parameter>input</parameter>. + <parameter>input</parameter> mit einem numerischen Index. </para> <para> <example> Index: phpdoc-de/reference/array/functions/array.xml diff -u phpdoc-de/reference/array/functions/array.xml:1.4 phpdoc-de/reference/array/functions/array.xml:1.5 --- phpdoc-de/reference/array/functions/array.xml:1.4 Fri May 31 13:47:06 2002 +++ phpdoc-de/reference/array/functions/array.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: tom Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.6 Maintainer: tom Status: ready --> <refentry id="function.array"> <refnamediv> <refname>array</refname> @@ -96,14 +96,14 @@ ]]> </programlisting> <para> - wird folgendes ausgeben: + wird folgendes ausgeben: <screen> <![CDATA[ Array ( - [1] => 'Januar' - [2] => 'Februar' - [3] => 'März' + [1] => Januar + [2] => Februar + [3] => März ) ]]> </screen> Index: phpdoc-de/reference/array/functions/each.xml diff -u phpdoc-de/reference/array/functions/each.xml:1.7 phpdoc-de/reference/array/functions/each.xml:1.8 --- phpdoc-de/reference/array/functions/each.xml:1.7 Sat Jan 11 10:19:37 2003 +++ phpdoc-de/reference/array/functions/each.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.7 Maintainer: tom Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.8 Maintainer: tom Status: ready --> <refentry id="function.each"> <refnamediv> <refname>each</refname> @@ -36,33 +36,45 @@ <![CDATA[ $foo = array ("bob", "fred", "jussi", "jouni", "egon", "marliese"); $bar = each ($foo); +print_r($bar); ]]> </programlisting> <para> <varname>$bar</varname> enthält nun die folgenden Schlüssel/Wert Paare: - <itemizedlist spacing="compact"> - <listitem><simpara>0 =&gt; 0</simpara></listitem> - <listitem><simpara>1 =&gt; 'bob'</simpara></listitem> - <listitem><simpara>key =&gt; 0</simpara></listitem> - <listitem><simpara>value =&gt; 'bob'</simpara></listitem> - </itemizedlist> + <screen> +<![CDATA[ +Array +( + [1] => bob + [value] => bob + [0] => 0 + [key] => 0 +) +]]> + </screen> <programlisting role="php"> <![CDATA[ $foo = array ("Robert" => "Bob", "Seppo" => "Sepi"); $bar = each ($foo); +print_r($bar); ]]> </programlisting> </para> <para> <varname>$bar</varname> enthält nun die folgenden Schlüssel/Wert Paare: - <itemizedlist spacing="compact"> - <listitem><simpara>0 =&gt; 'Robert'</simpara></listitem> - <listitem><simpara>1 =&gt; 'Bob'</simpara></listitem> - <listitem><simpara>key =&gt; 'Robert'</simpara></listitem> - <listitem><simpara>value =&gt; 'Bob'</simpara></listitem> - </itemizedlist> + <screen> +<![CDATA[ +Array +( + [1] => Bob + [value] => Bob + [0] => Robert + [key] => Robert +) +]]> + </screen> </para> </example> </para> Index: phpdoc-de/reference/array/functions/extract.xml diff -u phpdoc-de/reference/array/functions/extract.xml:1.6 phpdoc-de/reference/array/functions/extract.xml:1.7 --- phpdoc-de/reference/array/functions/extract.xml:1.6 Sun Oct 6 16:40:51 2002 +++ phpdoc-de/reference/array/functions/extract.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.6 Maintainer: tom Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.8 Maintainer: tom Status: ready --> <refentry id="function.extract"> <refnamediv> <refname>extract</refname> @@ -34,13 +34,13 @@ </note> <note> <para> - EXTR_IF_EXISTS und EXTR_PREFIX_IF_EXISTS wurde in Version 4.2.0. - eingeführt. + <constant>EXTR_IF_EXISTS</constant> und <constant>EXTR_PREFIX_IF_EXISTS</constant> + wurden in Version 4.2.0. eingeführt. </para> </note> <note> <para> - EXTR_REFS wurde in Version 4.3.0 eingeführt. + <constant>EXTR_REFS</constant> wurde in Version 4.3.0 eingeführt. </para> </note> <para> @@ -52,7 +52,7 @@ spezifiziert. Es kann einen der folgenden Werte annehmen: <variablelist> <varlistentry> - <term>EXTR_OVERWRITE</term> + <term><constant>EXTR_OVERWRITE</constant></term> <listitem> <simpara> Im Falle einer Kollision wird die existierende Variable @@ -61,7 +61,7 @@ </listitem> </varlistentry> <varlistentry> - <term>EXTR_SKIP</term> + <term><constant>EXTR_SKIP</constant></term> <listitem> <simpara> Im Falle einer Kollision wird die existierende Variable @@ -70,7 +70,7 @@ </listitem> </varlistentry> <varlistentry> - <term>EXTR_PREFIX_SAME</term> + <term><constant>EXTR_PREFIX_SAME</constant></term> <listitem> <simpara>Im Falle einer Kollision wird dem Variablennamen <parameter>prefix</parameter> vorangestellt. @@ -78,7 +78,7 @@ </listitem> </varlistentry> <varlistentry> - <term>EXTR_PREFIX_ALL</term> + <term><constant>EXTR_PREFIX_ALL</constant></term> <listitem> <simpara> Allen Variablennamen wird <parameter>prefix</parameter> @@ -88,7 +88,7 @@ </listitem> </varlistentry> <varlistentry> - <term>EXTR_PREFIX_INVALID</term> + <term><constant>EXTR_PREFIX_INVALID</constant></term> <listitem> <simpara> Nur ungültigen/numerischen Variablennamen wird @@ -98,7 +98,7 @@ </listitem> </varlistentry> <varlistentry> - <term>EXTR_IF_EXISTS</term> + <term><constant>EXTR_IF_EXISTS</constant></term> <listitem> <simpara> Überschreibt die Variable nur, wenn sie bereits in der aktuellen @@ -111,7 +111,7 @@ </listitem> </varlistentry> <varlistentry> - <term>EXTR_PREFIX_IF_EXISTS</term> + <term><constant>EXTR_PREFIX_IF_EXISTS</constant></term> <listitem> <simpara> Erstellt nur Variablennamen mit Präfix, wenn die Version ohne @@ -121,7 +121,7 @@ </listitem> </varlistentry> <varlistentry> - <term>EXTR_REFS</term> + <term><constant>EXTR_REFS</constant></term> <listitem> <simpara> Extrahiert Variablen als Referenzen. Das heißt, dass die Werte der @@ -137,22 +137,23 @@ </para> <para> Ist <parameter>extract_type</parameter> nicht spezifiziert, so wird - EXTR_OVERWRITE angenommen. + <constant>EXTR_OVERWRITE</constant> angenommen. </para> <para> - Beachten Sie, dass <parameter>prefix</parameter> nur dann nötig - ist, wenn <parameter>extract_type</parameter> EXTR_PREFIX_SAME, - EXTR_PREFIX_ALL, EXTR_PREFIX_INVALID, oder EXTR_PREFIX_IF_EXISTS - ist. Ist das Resultat trotz Präfix kein gültiger Variablenname, - wird es nicht in die Symboltabelle importiert. + Beachten Sie, dass <parameter>prefix</parameter> nur dann nötig ist, + wenn <parameter>extract_type</parameter> <constant>EXTR_PREFIX_SAME</constant>, + <constant>EXTR_PREFIX_ALL</constant>, <constant>EXTR_PREFIX_INVALID</constant> + or <constant>EXTR_PREFIX_IF_EXISTS</constant> ist. Ist das Resultat trotz + Präfix kein gültiger Variablenname, wird es nicht in die Symboltabelle + importiert. </para> <para> <function>extract</function> gibt die Anzahl erfolgreich in die Symboltabelle importierter Variablen zurück. </para> <para> - Eine mögliche Verwendung für extract ist der Import der Variablen - in einem von <function>wddx_deserialize</function> gelieferten + Eine mögliche Verwendung für <function>extract</function> ist der Import + der Variablen in einem von <function>wddx_deserialize</function> gelieferten assoziativen Array in die Symboltabelle. </para> <para> @@ -188,17 +189,19 @@ </para> <para> <varname>$size</varname> wurde nicht überschrieben, da wir - EXTR_PREFIX_SAME spezifiziert haben, was im Anlegen von - <varname>$wddx_size</varname> endete. Wäre EXTR_SKIP spezifiziert - worden, dann wäre $wddx_size nicht angelegt worden. EXTR_OVERWRITE - hätte <varname>$size</varname> mit dem Wert "medium" überschrieben, - und EXTR_PREFIX_ALL hätte die neuen Variablen - <varname>$wddx_color</varname>, <varname>$wddx_size</varname>, - und <varname>$wddx_shape</varname> angelegt. + <constant>EXTR_PREFIX_SAME</constant> spezifiziert haben, was im Anlegen + von <varname>$wddx_size</varname> endete. Wäre <constant>EXTR_SKIP</constant> + spezifiziert worden, dann wäre $wddx_size nicht angelegt worden. + <constant>EXTR_OVERWRITE</constant> hätte <varname>$size</varname> mit dem + Wert "medium" überschrieben, und <constant>EXTR_PREFIX_ALL</constant> hätte + die neuen Variablen <varname>$wddx_color</varname>, + <varname>$wddx_size</varname>, und <varname>$wddx_shape</varname> angelegt. </para> <para> Sie müssen assoziative Arrays benutzen, numerisch indizierte - Arrays liefern keine Resultate. + Arrays liefern keine Resultate, außer Sie verwenden + <constant>EXTR_PREFIX_ALL</constant> oder + <constant>EXTR_PREFIX_INVALID</constant>. </para> <para> Siehe auch <function>compact</function>. Index: phpdoc-de/reference/array/functions/range.xml diff -u phpdoc-de/reference/array/functions/range.xml:1.7 phpdoc-de/reference/array/functions/range.xml:1.8 --- phpdoc-de/reference/array/functions/range.xml:1.7 Fri Jan 24 11:05:35 2003 +++ phpdoc-de/reference/array/functions/range.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.6 Maintainer: tom Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.8 Maintainer: tom Status: ready --> <refentry id="function.range"> <refnamediv> <refname>range</refname> @@ -9,13 +9,13 @@ </refpurpose> </refnamediv> <refsect1> - <title>Beschreibung</title> - <methodsynopsis> - <type>array</type><methodname>range</methodname> - <methodparam><type>mixed</type><parameter>low</parameter></methodparam> - <methodparam><type>mixed</type><parameter>high</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>step</parameter></methodparam> - </methodsynopsis> + <title>Beschreibung</title> + <methodsynopsis> + <type>array</type><methodname>range</methodname> + <methodparam><type>int</type><parameter>low</parameter></methodparam> + <methodparam><type>int</type><parameter>high</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>step</parameter></methodparam> + </methodsynopsis> <para> <function>range</function> gibt ein Array mit Elementen im Bereich von <parameter>low</parameter> bis Index: phpdoc-de/reference/array/functions/usort.xml diff -u phpdoc-de/reference/array/functions/usort.xml:1.6 phpdoc-de/reference/array/functions/usort.xml:1.7 --- phpdoc-de/reference/array/functions/usort.xml:1.6 Sat Jan 11 10:19:37 2003 +++ phpdoc-de/reference/array/functions/usort.xml Fri Feb 7 17:58:46 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.7 Maintainer: tom Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.8 Maintainer: tom Status: ready --> <refentry id="function.usort"> <refnamediv> <refname>usort</refname> @@ -163,9 +163,11 @@ </para> <para> <screen> +<![CDATA[ b c d +]]> </screen> </para>
« previous php.doc.de (#500) next »