cvs: phpdoc /it/functions array.xml

From: Date: Wed, 24 Oct 2001 15:12:05 +0000
Subject: cvs: phpdoc /it/functions array.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969338202@lists.php.net to get a copy of this message
cucinato Wed Oct 24 11:12:05 2001 EDT Modified files: /phpdoc/it/functions array.xml Log: Added array_fill function Index: phpdoc/it/functions/array.xml diff -u phpdoc/it/functions/array.xml:1.20 phpdoc/it/functions/array.xml:1.21 --- phpdoc/it/functions/array.xml:1.20 Fri Oct 19 13:39:17 2001 +++ phpdoc/it/functions/array.xml Wed Oct 24 11:12:04 2001 @@ -1,5 +1,5 @@ <?xml encoding="iso-8859-1"?> - <!-- EN-Revision: 1.106 Maintainer: cucinato Status: ready --> + <!-- EN-Revision: 1.108 Maintainer: cucinato Status: ready --> <reference id="ref.array"> <title>Funzioni di Array</title> <titleabbrev>Arrays</titleabbrev> @@ -328,7 +328,50 @@ <programlisting role="php"> $trans = array ("a" => 1, "b" => 1, "c" => 2); $trans = array_flip ($trans); -// ora $trans &egrave;: array(1 => "b", 2 => "c"); +// ora $trans &egrave; : array(1 => "b", 2 => "c"); + </programlisting> + </example> + </para> + </refsect1> + </refentry> + + <refentry id="function.array-fill"> + <refnamediv> + <refname>array_fill</refname> + <refpurpose>Riempie un array con i valori specificati</refpurpose> + </refnamediv> + <refsect1> + <title>Descrizione</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>array_fill</function></funcdef> + <paramdef>int <parameter>inizio</parameter></paramdef> + <paramdef>int <parameter>num</parameter></paramdef> + <paramdef>mixed <parameter>valore</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>array_fill</function> riempie un array con + <parameter>num</parameter> elementi inizializzati con il valore del + parametro <parameter>valore</parameter>, e con le chiavi che partono dal + valore del parametro <parameter>start_index</parameter>. + </para> + <para> + <example> + <title>esempio di <function>array_fill</function></title> + <programlisting role="php"> +$a = array_fill(5, 6, 'banana'); + +/* +$a ora ha i seguenti elementi: + +$a[5] = "banana"; +$a[6] = "banana"; +$a[7] = "banana"; +$a[8] = "banana"; +$a[9] = "banana"; +$a[10] = "banana"; +*/ </programlisting> </example> </para>

« previous php.doc (#969338202) next »