-
Notifications
You must be signed in to change notification settings - Fork 14
update old file in reference/array/function/ #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
937a2bf
38d379d
69bfaea
14db1db
5020be0
ee11e09
0f02998
3c11a94
4f932e8
34a47f6
2c01b7b
3c5c3b5
5a1f7e4
5fb932e
d42ba72
0e3bca9
1203da5
2ba5b95
a119c73
dc8cdc9
73fe859
9042924
0d5ecef
305f86a
b08c137
34a8daa
a658119
ff34ab4
be4ea5f
91166f4
2fa5ba4
1d57fa6
da938e6
e375db2
386e748
7502de0
4e7b83e
07fef59
d7f74f0
c4af2e4
403b597
9ff1732
1f42c68
d24ef03
caca1f7
5c43dfd
70450a9
15335a6
dafb333
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,21 +1,23 @@ | ||||||
| <?xml version="1.0" encoding="utf-8"?> | ||||||
| <!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: cucinato Status: ready --> | ||||||
| <!-- EN-Revision: 58d11dfe19531e1355980b2892964c07dd8e8068 Maintainer: ManueldG Status: ready --> | ||||||
| <!-- Reviewed: no --> | ||||||
| <!-- CREDITS: cucinato --> | ||||||
| <refentry xml:id="function.array-change-key-case" xmlns="http://docbook.org/ns/docbook"> | ||||||
| <refnamediv> | ||||||
| <refname>array_change_key_case</refname> | ||||||
| <refpurpose>Restituisce un array con tutte le chiavi cambiate in maiuscolo o in minuscolo</refpurpose> | ||||||
| <refpurpose>Cambia case a tutte le chiavi dell'array</refpurpose> | ||||||
| </refnamediv> | ||||||
|
|
||||||
| <refsect1 role="description"> | ||||||
| &reftitle.description; | ||||||
| <methodsynopsis> | ||||||
| <type>array</type><methodname>array_change_key_case</methodname> | ||||||
| <methodparam><type>array</type><parameter>input</parameter></methodparam> | ||||||
| <methodparam choice="opt"><type>int</type><parameter>case</parameter><initializer>CASE_LOWER</initializer></methodparam> | ||||||
| <methodparam><type>array</type><parameter>array</parameter></methodparam> | ||||||
| <methodparam choice="opt"><type>int</type><parameter>case</parameter><initializer><constant>CASE_LOWER</constant></initializer></methodparam> | ||||||
| </methodsynopsis> | ||||||
| <para> | ||||||
| Restituisce un array con tutte le chiavi in <parameter>input</parameter> cambiate | ||||||
| in maiuscolo o minuscolo. Gli indici numerati non sono modificati. | ||||||
| Restituisce un array con tutte le chiavi di un <parameter>array</parameter> convertite | ||||||
| in maiuscolo o minuscolo. Gli indici numerici non vengono modificati. | ||||||
| </para> | ||||||
| </refsect1> | ||||||
|
|
||||||
|
|
@@ -25,10 +27,10 @@ | |||||
| <variablelist> | ||||||
|
|
||||||
| <varlistentry> | ||||||
| <term><parameter>input</parameter></term> | ||||||
| <term><parameter>array</parameter></term> | ||||||
| <listitem> | ||||||
| <para> | ||||||
| L'array su cui lavorare | ||||||
| L'array da elaborare <!--elaborare - array passato - parametro passato - l'array da modificare--> | ||||||
| </para> | ||||||
| </listitem> | ||||||
| </varlistentry> | ||||||
|
|
@@ -50,16 +52,7 @@ | |||||
| <refsect1 role="returnvalues"> | ||||||
| &reftitle.returnvalues; | ||||||
| <para> | ||||||
| Restituisce un array con le chiavi convertite in maiuscolo o minuscolo, oppure &false; se | ||||||
| <parameter>input</parameter> non è un array. | ||||||
| </para> | ||||||
| </refsect1> | ||||||
|
|
||||||
| <refsect1 role="errors"> | ||||||
| &reftitle.errors; | ||||||
| <para> | ||||||
| Lancia un <constant>E_WANRING</constant> se <parameter>input</parameter> | ||||||
| non è un array. | ||||||
| Restituisce un'array con le chiavi convertite in maiuscolo o minuscolo. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| </para> | ||||||
| </refsect1> | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,22 +1,24 @@ | ||||||
| <?xml version="1.0" encoding="utf-8"?> | ||||||
| <!-- EN-Revision: 965f8ae1ca8d21ba03e80e76105ee1d84bbbc81d Maintainer: cucinato Status: ready --> | ||||||
| <!-- EN-Revision: 214519fdbdd6bfe2942775d3554fa8f440f85404 Maintainer: ManueldG Status: ready --> | ||||||
| <!-- Reviewed: no --> | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| <!-- CREDITS: cucinato--> | ||||||
| <refentry xml:id="function.array-chunk" xmlns="http://docbook.org/ns/docbook"> | ||||||
| <refnamediv> | ||||||
| <refname>array_chunk</refname> | ||||||
| <refpurpose>Spezza un array in tronconi</refpurpose> | ||||||
| <refpurpose>Divide un array in più subarray</refpurpose> | ||||||
| </refnamediv> | ||||||
|
|
||||||
| <refsect1 role="description"> | ||||||
| &reftitle.description; | ||||||
| <methodsynopsis> | ||||||
| <type>array</type><methodname>array_chunk</methodname> | ||||||
| <methodparam><type>array</type><parameter>input</parameter></methodparam> | ||||||
| <methodparam><type>int</type><parameter>size</parameter></methodparam> | ||||||
| <methodparam choice="opt"><type>bool</type><parameter>preserve_keys</parameter><initializer>false</initializer></methodparam> | ||||||
| <methodparam><type>array</type><parameter>array</parameter></methodparam> | ||||||
| <methodparam><type>int</type><parameter>length</parameter></methodparam> | ||||||
| <methodparam choice="opt"><type>bool</type><parameter>preserve_keys</parameter><initializer>&false;</initializer></methodparam> | ||||||
| </methodsynopsis> | ||||||
| <para> | ||||||
| Spezza l'array in più array di dimensione <parameter>size</parameter>. | ||||||
| L'ultimo array potrebbe ovviamente avere una dimensione inferiore. | ||||||
| Divide l'array in più array di dimensione <parameter>length</parameter>. | ||||||
| L'ultimo array potrebbe avere ovviamente una dimensione inferiore. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| </para> | ||||||
| </refsect1> | ||||||
|
|
||||||
|
|
@@ -26,16 +28,16 @@ | |||||
| <variablelist> | ||||||
|
|
||||||
| <varlistentry> | ||||||
| <term><parameter>input</parameter></term> | ||||||
| <term><parameter>array</parameter></term> | ||||||
| <listitem> | ||||||
| <para> | ||||||
| L'array su cui lavorare | ||||||
| L'array da modificare | ||||||
| </para> | ||||||
| </listitem> | ||||||
| </varlistentry> | ||||||
|
|
||||||
| <varlistentry> | ||||||
| <term><parameter>size</parameter></term> | ||||||
| <term><parameter>length</parameter></term> | ||||||
| <listitem> | ||||||
| <para> | ||||||
| La dimensione di ogni pezzo | ||||||
|
|
@@ -47,8 +49,8 @@ | |||||
| <term><parameter>preserve_keys</parameter></term> | ||||||
| <listitem> | ||||||
| <para> | ||||||
| Quando è &true; le chiavi sono mantenute. | ||||||
| Il default è &false; che reindicizza le chiavi con valori numerici | ||||||
| Quando è impostato a &true; le chiavi sono mantenute. | ||||||
| Il valore di default è &false; che reindicizza le chiavi con valori numerici | ||||||
| </para> | ||||||
| </listitem> | ||||||
| </varlistentry> | ||||||
|
|
@@ -60,19 +62,44 @@ | |||||
| <refsect1 role="returnvalues"> | ||||||
| &reftitle.returnvalues; | ||||||
| <para> | ||||||
| Restituisce un array multidimensionale indicizzato numericamente, a partire da zero, | ||||||
| con ogni dimensione contenente <parameter>size</parameter> elementi. | ||||||
| Restituisce un array multidimensionale<!--matrice--> indicizzato numericamente, a partire da zero, | ||||||
| con ogni dimensione contenente <parameter>lenght</parameter> elementi. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| </para> | ||||||
| </refsect1> | ||||||
|
|
||||||
| <refsect1 role="errors"> | ||||||
| &reftitle.errors; | ||||||
| <para> | ||||||
| Se <parameter>size</parameter> è minore di 1 | ||||||
| <constant>E_WARNING</constant> verrà lanciata e sarà restituito &null;. | ||||||
| Se <parameter>length</parameter> è minore di <literal>1</literal>, | ||||||
| sarà segnalato un <classname>ValueError</classname>. | ||||||
| </para> | ||||||
| </refsect1> | ||||||
|
|
||||||
| <refsect1 role="changelog"> | ||||||
| &reftitle.changelog; | ||||||
| <informaltable> | ||||||
| <tgroup cols="2"> | ||||||
| <thead> | ||||||
| <row> | ||||||
| <entry>&Version;</entry> | ||||||
| <entry>&Description;</entry> | ||||||
| </row> | ||||||
| </thead> | ||||||
| <tbody> | ||||||
| <row> | ||||||
| <entry>8.0.0</entry> | ||||||
| <entry> | ||||||
| Se <parameter>length</parameter> è minore di <literal>1</literal>, | ||||||
| sarà segnalato un <classname>ValueError</classname>; | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| precedentemente, veniva mostrato un errore di tipo <constant>E_WARNING</constant> | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| e la funzione restituiva &null;. | ||||||
| </entry> | ||||||
| </row> | ||||||
| </tbody> | ||||||
| </tgroup> | ||||||
| </informaltable> | ||||||
| </refsect1> | ||||||
|
|
||||||
| <refsect1 role="examples"> | ||||||
| &reftitle.examples; | ||||||
| <para> | ||||||
|
|
@@ -146,7 +173,6 @@ Array | |||||
| </refsect1> | ||||||
|
|
||||||
| </refentry> | ||||||
|
|
||||||
| <!-- Keep this comment at the end of the file | ||||||
| Local variables: | ||||||
| mode: sgml | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,6 @@ | ||||||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||||||
| <!-- EN-Revision: 3e15d2894fb35432d2a111db36fe8ba8ebc62024 Maintainer: pastore Status: ready --> | ||||||||
| <!-- EN-Revision: 71e3c74047f04b26aa1be51215d7129e15dc2993 Maintainer: ManueldG Status: ready --> | ||||||||
| <!-- Reviewed: no --> | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| <!-- CREDITS: gurugeek --> | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| <refentry xml:id="function.array-combine" xmlns="http://docbook.org/ns/docbook"> | ||||||||
| <refnamediv> | ||||||||
|
|
@@ -15,7 +16,7 @@ | |||||||
| <methodparam><type>array</type><parameter>values</parameter></methodparam> | ||||||||
| </methodsynopsis> | ||||||||
| <para> | ||||||||
| Crea un <type>array</type> utilizzando i valori dall'array | ||||||||
| Crea un <type>array</type> utilizzando | ||||||||
| <parameter>keys</parameter> per le chiavi e i valori dall'array | ||||||||
| <parameter>values</parameter> per i valori corrispondenti. | ||||||||
| </para> | ||||||||
|
|
@@ -30,7 +31,7 @@ | |||||||
| <term><parameter>keys</parameter></term> | ||||||||
| <listitem> | ||||||||
| <para> | ||||||||
| Un array di chiavi da utilizzare. Valori illegali per le chiavi saranno | ||||||||
| Un array di chiavi da utilizzare. I valori non validi come chiavi saranno | ||||||||
| convertiti in <type>string</type>. | ||||||||
| </para> | ||||||||
| </listitem> | ||||||||
|
|
@@ -40,7 +41,7 @@ | |||||||
| <term><parameter>values</parameter></term> | ||||||||
| <listitem> | ||||||||
| <para> | ||||||||
| Un <type>Array</type> di valori da utilizzare | ||||||||
| Un <type>Array</type> di valori da utilizzare come parametro | ||||||||
| </para> | ||||||||
| </listitem> | ||||||||
| </varlistentry> | ||||||||
|
|
@@ -52,19 +53,43 @@ | |||||||
| <refsect1 role="returnvalues"> | ||||||||
| &reftitle.returnvalues; | ||||||||
| <para> | ||||||||
| Restituisce l'<type>array</type> combinato, &false; se il numero degli elementi | ||||||||
| per ogni array non è uguale. | ||||||||
| Restituisce l'<type>array</type> generato, o &false; se gli array non hanno la stessa lunghezza. | ||||||||
| </para> | ||||||||
| </refsect1> | ||||||||
|
|
||||||||
| <refsect1 role="errors"> | ||||||||
| &reftitle.errors; | ||||||||
| <para> | ||||||||
| Genera un <constant>E_WARNING</constant> se il numero degli elementi di | ||||||||
| <parameter>keys</parameter> e <parameter>values</parameter> non | ||||||||
| corrisponde. | ||||||||
| A partire da PHP 8.0.0, viene generato un <classname>ValueError</classname> se il numero di elementi di | ||||||||
| <parameter>keys</parameter> e <parameter>values</parameter> hanno una lunghezza diversa. | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| Prima di PHP 8.0.0, veniva invece emesso un <constant>E_WARNING</constant>. | ||||||||
| </para> | ||||||||
| </refsect1> | ||||||||
|
|
||||||||
| <refsect1 role="changelog"> | ||||||||
| &reftitle.changelog; | ||||||||
| <informaltable> | ||||||||
| <tgroup cols="2"> | ||||||||
| <thead> | ||||||||
| <row> | ||||||||
| <entry>&Version;</entry> | ||||||||
| <entry>&Description;</entry> | ||||||||
| </row> | ||||||||
| </thead> | ||||||||
| <tbody> | ||||||||
| <row> | ||||||||
| <entry>8.0.0</entry> | ||||||||
| <entry> | ||||||||
| <function>array_combine</function> genererà un | ||||||||
| <classname>ValueError</classname> se il numbero degli elementi | ||||||||
| degli array non è uguale; | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| invece prima la funzione ritornava un &false;. | ||||||||
| </entry> | ||||||||
| </row> | ||||||||
| </tbody> | ||||||||
| </tgroup> | ||||||||
| </informaltable> | ||||||||
| </refsect1> | ||||||||
|
|
||||||||
| <refsect1 role="examples"> | ||||||||
| &reftitle.examples; | ||||||||
|
|
@@ -86,7 +111,7 @@ print_r($c); | |||||||
| <screen> | ||||||||
| <![CDATA[ | ||||||||
| Array | ||||||||
| ( | ||||||||
| ( | ||||||||
| [green] => avocado | ||||||||
| [red] => apple | ||||||||
| [yellow] => banana | ||||||||
|
|
@@ -104,6 +129,7 @@ Array | |||||||
| <member><function>array_merge</function></member> | ||||||||
| <member><function>array_walk</function></member> | ||||||||
| <member><function>array_values</function></member> | ||||||||
| <member><function>array_map</function></member> | ||||||||
| </simplelist> | ||||||||
| </para> | ||||||||
| </refsect1> | ||||||||
|
|
||||||||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,10 +1,11 @@ | ||||||||
| <?xml version="1.0" encoding="utf-8"?> | ||||||||
| <!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: pastore Status: ready --> | ||||||||
| <!-- EN-Revision: 6b56e6f444e49396ee5122258ee85b99a8543f6a Maintainer: ManueldG Status: ready --> | ||||||||
| <!-- Reviewed: no --> | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| <!-- CREDITS: cucinato --> | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| <refentry xml:id="function.array-count-values" xmlns="http://docbook.org/ns/docbook"> | ||||||||
| <refnamediv> | ||||||||
| <refname>array_count_values</refname> | ||||||||
| <refpurpose>Conta tutti i valori di un array</refpurpose> | ||||||||
| <refpurpose>Conta tutte le occorrenze di ogni singolo valore in un array</refpurpose> | ||||||||
| </refnamediv> | ||||||||
|
|
||||||||
| <refsect1 role="description"> | ||||||||
|
|
@@ -15,8 +16,8 @@ | |||||||
| </methodsynopsis> | ||||||||
| <para> | ||||||||
| <function>array_count_values</function> restituisce un array usando | ||||||||
| i valori di <parameter>array</parameter> come chiavi e | ||||||||
| la loro frequenza in <parameter>array</parameter> come valori. | ||||||||
| i valori dell'<parameter>array</parameter> (che devono essere &integer; o &string;) | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| come chiavi e la frequenza degli elementi nell'<parameter>array</parameter> come valori. | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| </para> | ||||||||
| </refsect1> | ||||||||
|
|
||||||||
|
|
@@ -41,7 +42,7 @@ | |||||||
| <refsect1 role="returnvalues"> | ||||||||
| &reftitle.returnvalues; | ||||||||
| <para> | ||||||||
| Restituisce un array associativo di valori da <parameter>array</parameter> come | ||||||||
| Restituisce un array associativo di valori da un'<parameter>array</parameter> come | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| chiavi ed il loro conteggio come valore. | ||||||||
| </para> | ||||||||
| </refsect1> | ||||||||
|
|
@@ -63,6 +64,7 @@ | |||||||
| <![CDATA[ | ||||||||
| <?php | ||||||||
| $array = array(1, "ciao", 1, "mondo", "ciao"); | ||||||||
| $array = array(1, "ciao", 1, "mondo", "ciao"); | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| print_r(array_count_values($array)); | ||||||||
| ?> | ||||||||
| ]]> | ||||||||
|
|
@@ -75,6 +77,8 @@ Array | |||||||
| [1] => 2 | ||||||||
| [ciao] => 2 | ||||||||
| [mondo] => 1 | ||||||||
| [ciao] => 2 | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| [mondo] => 1 | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| ) | ||||||||
| ]]> | ||||||||
| </screen> | ||||||||
|
|
@@ -115,4 +119,4 @@ End: | |||||||
| vim600: syn=xml fen fdm=syntax fdl=2 si | ||||||||
| vim: et tw=78 syn=sgml | ||||||||
| vi: ts=1 sw=1 | ||||||||
| --> | ||||||||
| --> | ||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.