cvs: phpdoc-it /reference/array/functions array-unshift.xml each.xml list.xml usort.xml

From: Date: Fri, 28 Jun 2002 19:19:58 +0000
Subject: cvs: phpdoc-it /reference/array/functions array-unshift.xml each.xml list.xml usort.xml
Groups: php.doc.it 
Request: Send a blank email to doc-it+get-13@lists.php.net to get a copy of this message
cucinato Fri Jun 28 15:19:58 2002 EDT Modified files: /phpdoc-it/reference/array/functions array-unshift.xml each.xml list.xml usort.xml Log: Synced to EN revision Index: phpdoc-it/reference/array/functions/array-unshift.xml diff -u phpdoc-it/reference/array/functions/array-unshift.xml:1.3 phpdoc-it/reference/array/functions/array-unshift.xml:1.4 --- phpdoc-it/reference/array/functions/array-unshift.xml:1.3 Sun May 12 18:14:11 2002 +++ phpdoc-it/reference/array/functions/array-unshift.xml Fri Jun 28 15:19:57 2002 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/array.xml, last change in rev 1.1 --> <!-- last change to 'array-unshift' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.173/EN.1.2 --> <refentry id="function.array-unshift"> <refnamediv> @@ -24,7 +24,8 @@ <function>array_unshift</function> aggiunge gli elementi specificati in testa ad <parameter>array</parameter>. Si noti che la lista di elementi &egrave; aggiunta in blocco, in modo tale che gli - elementi rimangano nello stesso ordine. + elementi rimangano nello stesso ordine. Tutte le chiavi numeriche vengono + modificate per iniziare da zero mentre le chiavi alfabetiche non sono modificate. </para> <para> Restituisce il nuovo numero di elementi in Index: phpdoc-it/reference/array/functions/each.xml diff -u phpdoc-it/reference/array/functions/each.xml:1.5 phpdoc-it/reference/array/functions/each.xml:1.6 --- phpdoc-it/reference/array/functions/each.xml:1.5 Sun May 12 18:14:11 2002 +++ phpdoc-it/reference/array/functions/each.xml Fri Jun 28 15:19:57 2002 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/array.xml, last change in rev 1.1 --> <!-- last change to 'each' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.173/EN.1.2 --> <refentry id="function.each"> <refnamediv> @@ -73,18 +73,18 @@ <para> <function>each</function> viene normalmente usata in congiunzione con <function>list</function> nell'attraversamento di un array; per esempio, - <varname>$HTTP_POST_VARS</varname>: + <varname>$_POST</varname>: <example> <title> - Attraversamento di <varname>$HTTP_POST_VARS</varname> con + Attraversamento di <varname>$_POST</varname> con <function>each</function> </title> <programlisting role="php"> <![CDATA[ -echo "Valori inviati con il metodo POST:<br>"; -reset ($HTTP_POST_VARS); -while (list ($chiave, $valore) = each ($HTTP_POST_VARS)) { - echo "$chiave => $valore<br>"; +echo "Valori inviati con il metodo POST:<br />\n"; +reset ($_POST); +while (list ($chiave, $valore) = each ($_POST)) { + echo "$chiave => $valore<br />\n"; } ]]> </programlisting> Index: phpdoc-it/reference/array/functions/list.xml diff -u phpdoc-it/reference/array/functions/list.xml:1.4 phpdoc-it/reference/array/functions/list.xml:1.5 --- phpdoc-it/reference/array/functions/list.xml:1.4 Wed Jun 12 02:49:00 2002 +++ phpdoc-it/reference/array/functions/list.xml Fri Jun 28 15:19:57 2002 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/array.xml, last change in rev 1.6 --> <!-- last change to 'list' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.5 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.173/EN.1.2 --> <refentry id="function.list"> <refnamediv> Index: phpdoc-it/reference/array/functions/usort.xml diff -u phpdoc-it/reference/array/functions/usort.xml:1.3 phpdoc-it/reference/array/functions/usort.xml:1.4 --- phpdoc-it/reference/array/functions/usort.xml:1.3 Sun May 12 18:14:11 2002 +++ phpdoc-it/reference/array/functions/usort.xml Fri Jun 28 15:19:57 2002 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/array.xml, last change in rev 1.1 --> <!-- last change to 'usort' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.173/EN.1.2 --> <refentry id="function.usort"> <refnamediv> @@ -24,11 +24,18 @@ questa funzione. </para> <para> - La funzione di comparazione deve restituire un intero minore, - uguale o superiore a zero se il primo elemento è da considerarsi - rispettivamente monire, uguale o maggiore del secondo. - Se due parametri vengono valutati uguale, il loro ordinamento - nell'array ordinato è indefinito.. + La funzione di comparazione deve restituire un intero minore, uguale + o superiore a zero se il primo elemento è da considerarsi + rispettivamente minore, uguale o maggiore del + secondo. + <note> + <para> + Se due parametri vengono valutati come uguali, il loro ordinamento nell'array ordinato è indefinito. + Fino al PHP 4.0.6 le funzioni definite dall'utente mantenevano l'ordine originario per + questi elementi, ma con il nuovo algoritmo di ordinamento introdotto con la versione 4.1.0 questo + non succede più dal momento che non c'è un modo per otternerlo in maniera efficiente. + </para> + </note> </para> <para> <example>

« previous php.doc.it (#13) next »