cvs: phpdoc /de/functions array.xml /en/functions array.xml

From: Date: Tue, 23 Oct 2001 05:26:23 +0000
Subject: cvs: phpdoc /de/functions array.xml /en/functions array.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969338182@lists.php.net to get a copy of this message
sebastian Tue Oct 23 01:26:23 2001 EDT Modified files: /phpdoc/de/functions array.xml /phpdoc/en/functions array.xml Log: array_init() documentation. Index: phpdoc/de/functions/array.xml diff -u phpdoc/de/functions/array.xml:1.23 phpdoc/de/functions/array.xml:1.24 --- phpdoc/de/functions/array.xml:1.23 Wed Oct 17 18:06:28 2001 +++ phpdoc/de/functions/array.xml Tue Oct 23 01:26:23 2001 @@ -325,6 +325,49 @@ </refsect1> </refentry> + <refentry id="function.array-init"> + <refnamediv> + <refname>array_init</refname> + <refpurpose>Führt eine Vorbelegung eines Arrays mit Werten durch</refpurpose> + </refnamediv> + <refsect1> + <title>Beschreibung</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>array_init</function></funcdef> + <paramdef>int <parameter>start_index</parameter></paramdef> + <paramdef>int <parameter>num</parameter></paramdef> + <paramdef>mixed <parameter>value</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>array_init</function> belegt ein Array mit + <parameter>num</parameter> Einträgen des Wertes des + <parameter>value</parameter> Parameters. Die Indizes des Arrays + beginnen mit dem <parameter>start_index</parameter> Parameter. + </para> + <para> + <example> + <title><function>array_init</function> example</title> + <programlisting role="php"> +$a = array_init(5, 6, 'Banane'); + +/* +$a hat nun die folgenden Einträge: + +$a[5] = "Banane"; +$a[6] = "Banane"; +$a[7] = "Banane"; +$a[8] = "Banane"; +$a[9] = "Banane"; +$a[10] = "Banane"; +*/ + </programlisting> + </example> + </para> + </refsect1> + </refentry> + <refentry id="function.array-intersect"> <refnamediv> <refname>array_intersect</refname> Index: phpdoc/en/functions/array.xml diff -u phpdoc/en/functions/array.xml:1.106 phpdoc/en/functions/array.xml:1.107 --- phpdoc/en/functions/array.xml:1.106 Fri Oct 19 06:47:17 2001 +++ phpdoc/en/functions/array.xml Tue Oct 23 01:26:23 2001 @@ -1,5 +1,5 @@ <?xml encoding="iso-8859-1"?> -<!-- $Revision: 1.106 $ --> +<!-- $Revision: 1.107 $ --> <reference id="ref.array"> <title>Array Functions</title> <titleabbrev>Arrays</titleabbrev> @@ -331,6 +331,49 @@ // now $trans is : array(1 => "b", 2 => "c"); </programlisting> </example> + </para> + </refsect1> + </refentry> + + <refentry id="function.array-init"> + <refnamediv> + <refname>array_init</refname> + <refpurpose>Initialize an array with values</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>array_init</function></funcdef> + <paramdef>int <parameter>start_index</parameter></paramdef> + <paramdef>int <parameter>num</parameter></paramdef> + <paramdef>mixed <parameter>value</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>array_init</function> returns an array filled with + <parameter>num</parameter> entries of the value of the + <parameter>value</parameter> parameter, keys starting at the + <parameter>start_index</parameter> parameter. + </para> + <para> + <example> + <title><function>array_init</function> example</title> + <programlisting role="php"> +$a = array_init(5, 6, 'banana'); + +/* +$a now has the following entries: + +$a[5] = "banana"; +$a[6] = "banana"; +$a[7] = "banana"; +$a[8] = "banana"; +$a[9] = "banana"; +$a[10] = "banana"; +*/ + </programlisting> + </example> </para> </refsect1> </refentry>

« previous php.doc (#969338182) next »