cvs: phpdoc-it /reference/array/functions array-reverse.xml asort.xml
| From: | Marco Cucinato | Date: | Mon, 17 Nov 2003 23:28:03 +0000 |
| Subject: | cvs: phpdoc-it /reference/array/functions array-reverse.xml asort.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-471@lists.php.net to get a copy of this message | ||
cucinato Mon Nov 17 18:28:03 2003 EDT
Modified files:
/phpdoc-it/reference/array/functions array-reverse.xml asort.xml
Log:
Sync to EN version
Index: phpdoc-it/reference/array/functions/array-reverse.xml
diff -u phpdoc-it/reference/array/functions/array-reverse.xml:1.3
phpdoc-it/reference/array/functions/array-reverse.xml:1.4
--- phpdoc-it/reference/array/functions/array-reverse.xml:1.3 Sun May 12 18:14:11 2002
+++ phpdoc-it/reference/array/functions/array-reverse.xml Mon Nov 17 18:28:03 2003
@@ -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-reverse' in en/ tree in rev 1.62 -->
-<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready -->
+<!-- EN-Revision: 1.8 Maintainer: cucinato Status: ready -->
<!-- OLD-Revision: 1.173/EN.1.62 -->
<refentry id="function.array-reverse">
<refnamediv>
@@ -28,9 +28,11 @@
<title>esempio di <function>array_reverse</function></title>
<programlisting role="php">
<![CDATA[
-$input = array ("php", 4.0, array ("verde", "rosso"));
-$risultato = array_reverse ($input);
-$resultato_chiavi = array_reverse ($input, TRUE);
+<?php
+$input = array("php", 4.0, array("verde", "rosso"));
+$risultato = array_reverse($input);
+$resultato_chiavi = array_reverse($input, TRUE);
+?>
]]>
</programlisting>
<para>
@@ -39,7 +41,8 @@
si noti la differenza tra le chiavi. La stampa di
<varname>$risultato</varname> e
<varname>$risultato_chiavi</varname> sarà:
- <screen role="php">
+ </para>
+ <screen role="php">
<![CDATA[
Array
(
@@ -64,16 +67,17 @@
[0] => php
)
]]>
- </screen>
- </para>
-
+ </screen>
</example>
</para>
<note>
<para>
- Il secondo parametro è stato aggiunto in PHP 4.0.3.
+ Il secondo parametro è stato aggiunto in PHP 4.0.3.
</para>
</note>
+ <para>
+ Vedere anche <function>array_flip</function>.
+ </para>
</refsect1>
</refentry>
Index: phpdoc-it/reference/array/functions/asort.xml
diff -u phpdoc-it/reference/array/functions/asort.xml:1.3
phpdoc-it/reference/array/functions/asort.xml:1.4
--- phpdoc-it/reference/array/functions/asort.xml:1.3 Sun May 12 18:14:11 2002
+++ phpdoc-it/reference/array/functions/asort.xml Mon Nov 17 18:28:03 2003
@@ -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 'asort' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready -->
+<!-- EN-Revision: 1.7 Maintainer: cucinato Status: ready -->
<!-- OLD-Revision: 1.173/EN.1.2 -->
<refentry id="function.asort">
<refnamediv>
@@ -19,35 +19,37 @@
Questa funzione ordina un array in modo tale che i suoi indici mantengano
la loro correlazione con gli elementi ai quali sono associati.
Viene usata principalmente nell'ordinamento degli array associativi, quando
- la disposizione originaria degli elementi è importante .
+ la disposizione originaria degli elementi è importante.
</para>
<example>
<title>esempio di <function>asort</function></title>
<programlisting role="php">
<![CDATA[
-$frutta = array ("d"=>"limone", "a"=>"arancia",
"b"=>"banana", "c"=>"mela");
-asort ($frutta);
-reset ($frutta);
-while (list ($chiave, $valore) = each ($frutta)) {
+<?php
+$frutta = array("d"=>"limone", "a"=>"arancia",
"b"=>"banana", "c"=>"mela");
+asort($frutta);
+reset($frutta);
+while (list($chiave, $valore) = each($frutta)) {
echo "$chiave = $valore\n";
}
+?>
]]>
</programlisting>
<para>
- Questo esempio mostrerà:
- <screen>
+ Questo esempio mostrerà:
+ </para>
+ <screen>
<![CDATA[
a = arancia
b = banana
d = limone
c = mela
]]>
- </screen>
- </para>
+ </screen>
</example>
<para>
I frutti sono ordinati in ordine alfabetico, e l'indice
- associato ad ogni elemento è stato mantenuto.
+ associato ad ogni elemento è stato mantenuto.
</para>
<para>
È possibile modificare il comportamento dell'ordinamento usando il parametro