Skip to content

update old file in reference/array/function/#67

Open
ManueldG wants to merge 49 commits intophp:masterfrom
ManueldG:original-doc
Open

update old file in reference/array/function/#67
ManueldG wants to merge 49 commits intophp:masterfrom
ManueldG:original-doc

Conversation

@ManueldG
Copy link
Contributor

@ManueldG ManueldG commented Feb 8, 2025

DavidePastore commented Feb 7, 2025

@ManueldG, if you were referring to this PR, this is ok! Feel free to close the other PRs containing English versions.

updated

appendices/debugger.xml
appendices/ini.list.xml
appendices/migration70/new-features.xml
language/predefined/exceptions.xml

reference/bc/constants.xml
reference/classobj/constants.xml
reference/ctype/constants.xml

reference/array/functions/array-change-key-case.xml
reference/array/functions/array-chunk.xml
reference/array/functions/array-combine.xml
reference/array/functions/array-count-values.xml
reference/array/functions/array-diff-assoc.xml
reference/array/functions/array-key-exists.xml
reference/array/functions/array-map.xml
reference/array/functions/array-merge-recursive.xml
reference/array/functions/array_replace_recursive.xml

@ManueldG
Copy link
Contributor Author

ManueldG commented Feb 8, 2025

updated array-filter.xml

@DavidePastore
Copy link
Member

@ManueldG
Copy link
Contributor Author

ManueldG commented Feb 10, 2025 via email

@ManueldG
Copy link
Contributor Author

updated:

reference/array/functions/array-change-key-case.xml
reference/array/functions/array-chunk.xml
reference/array/functions/array-combine.xml
reference/array/functions/array-count-values.xml
reference/array/functions/array-diff-assoc.xml
reference/array/functions/array-key-exists.xml
reference/array/functions/array-map.xml
reference/array/functions/array-merge-recursive.xml
reference/array/functions/array_replace_recursive.xml

Copy link
Contributor Author

@ManueldG ManueldG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleaned PR from old files

@DavidePastore
Copy link
Member

Hi @ManueldG. Thanks for the PR. How many files did you want to update in this PR? I see 24 files and some of them look without any concrete change. Could you please fix this?

@ManueldG
Copy link
Contributor Author

I added / update files in reference/array/functions thirteen files the other files are not modified

@DavidePastore
Copy link
Member

I added / update files in reference/array/functions thirteen files the other files are not modified

Could you revert all the files you didn't modify to their original state?

@ManueldG
Copy link
Contributor Author

ManueldG commented Feb 25, 2025

I want to review these files based on your corrections
I cleaned all the branch

could you check these updates?

@ManueldG ManueldG force-pushed the original-doc branch 2 times, most recently from b65125b to b88298a Compare March 9, 2025 18:48
@DavidePastore
Copy link
Member

@ManueldG, puoi risolvere i conflitti in questa PR?

Copy link
Member

@DavidePastore DavidePastore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ho fatto una revisione dei primi 7 file in questa PR. Proseguirò con gli altri appena possibile.

<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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Restituisce un'array con le chiavi convertite in maiuscolo o minuscolo.
Restituisce un array con le chiavi convertite in maiuscolo o minuscolo.

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 965f8ae1ca8d21ba03e80e76105ee1d84bbbc81d Maintainer: cucinato Status: ready -->
<!-- EN-Revision: 214519fdbdd6bfe2942775d3554fa8f440f85404 Maintainer: ManueldG Status: ready -->
<!-- Reviewed: no -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<!-- Reviewed: no -->
<!-- Reviewed: yes -->

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
L'ultimo array potrebbe avere ovviamente una dimensione inferiore.
L'ultimo array potrebbe contenere meno di <parameter>length</parameter> elementi.

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
con ogni dimensione contenente <parameter>lenght</parameter> elementi.
con ogni dimensione contenente <parameter>length</parameter> elementi.

<entry>8.0.0</entry>
<entry>
Se <parameter>length</parameter> è minore di <literal>1</literal>,
sarà segnalato un <classname>ValueError</classname>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sarà segnalato un <classname>ValueError</classname>;
verrà ora segnalato un <classname>ValueError</classname>;

isset($search_array['primo']);

// restituisce true
array_key_exists('primo', $search_array);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
array_key_exists('primo', $search_array);


// restituisce true
array_key_exists('primo', $search_array);
// restituisce true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// restituisce true
var_dump(isset($searchArray['primo']));

// restituisce true
array_key_exists('primo', $search_array);
// restituisce true
array_key_exists('primo', $search_array);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
array_key_exists('primo', $search_array);
var_dump(array_key_exists('primo', $searchArray));

Comment on lines 136 to 152
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
Per motivi di retrocompatibilità, anche <function>array_key_exists</function>
restituirà &true; se <parameter>key</parameter> è una proprietà
Per motivi di retrocompatibilità, <function>array_key_exists</function>
restituirà &true; se la <parameter>key</parameter> è una proprietà
definita all'interno di un <type>object</type> dato come
<parameter>array</parameter>. Questo comportamento è deprecato a partire da PHP 7.4.0
e rimosso a partire da PHP 8.0.0.
</para>
<para>
Per verificare se esiste una proprietà in un oggetto,
dovrebbe essere utilizzata <function>property_exists</function>.
</para>
</note>
</refsect1>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questa sezione andrebbe rimossa secondo quello che viene riportato qui.

array_key_exists('primo', $search_array);
?>
]]>
</programlisting>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sotto questo tag manca qualcosa secondo quanto riportato qui.

Copy link
Member

@DavidePastore DavidePastore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ho fatto una revisione dei primi 7 file in questa PR. Proseguirò con gli altri appena possibile.

<refnamediv>
<refname>array_map</refname>
<refpurpose>Applica la funzione callback a tutti gli elementi degli array dati</refpurpose>
<refpurpose>Applica la callback a tutti gli elementi dell'array in input</refpurpose>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<refpurpose>Applica la callback a tutti gli elementi dell'array in input</refpurpose>
<refpurpose>Applica la callback agli elementi dell'array in input</refpurpose>

usati come argomenti per la callback.
<function>array_map</function> restituisce un &array; che contiene
i risultati della <parameter>callback</parameter>
all'indice corrispondente dell'elemento dell'<parameter>array</parameter>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
all'indice corrispondente dell'elemento dell'<parameter>array</parameter>
al valore corrispondente dell'<parameter>array</parameter>

Copy link
Member

@DavidePastore DavidePastore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aggiungo qui la revisione per i file mancanti.

accetta dovrebbe corrispondere al numero di array
passati ad <function>array_map</function>.
passati a <function>array_map</function>.
I parametri in eccesso sono ignorati.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
I parametri in eccesso sono ignorati.
I parametri in eccesso sono ignorati. Un <classname>ArgumentCountError</classname>

passati ad <function>array_map</function>.
passati a <function>array_map</function>.
I parametri in eccesso sono ignorati.
Un <classname>ArgumentCountError</classname>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Un <classname>ArgumentCountError</classname>

Se viene fornito solo <parameter>array1</parameter>,
<methodname>array_map</methodname> restituirà l'array di input.
per eseguire un'operazione zip su più array e ritornerà un'array
i cui elementi sono ciascuno un sub-array contenente gli elementi degli
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
i cui elementi sono ciascuno un sub-array contenente gli elementi degli
i cui elementi sono ciascuno un sub-array contenente gli elementi degli array di input con lo stesso indice (vedere l'esempio seguente).

<methodname>array_map</methodname> restituirà l'array di input.
per eseguire un'operazione zip su più array e ritornerà un'array
i cui elementi sono ciascuno un sub-array contenente gli elementi degli
array di input con lo stesso indice (vedere l'esempio seguente).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
array di input con lo stesso indice (vedere l'esempio seguente).

per eseguire un'operazione zip su più array e ritornerà un'array
i cui elementi sono ciascuno un sub-array contenente gli elementi degli
array di input con lo stesso indice (vedere l'esempio seguente).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

while ($nome_frutto = current($array)( {
if ($nome_frutto == 'mela') {
echo key($array).'<br />';
// questo ciclo mostra tute le chiavi associative
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// questo ciclo mostra tute le chiavi associative
// questo ciclo stampa tutte le chiavi dell'array associativo

if ($nome_frutto == 'mela') {
echo key($array).'<br />';
// questo ciclo mostra tute le chiavi associative
//dell'array che sono aguali a "mela"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//dell'array che sono aguali a "mela"
// in cui il valore è uguale a "mela"

&example.outputs;
<screen>
<![CDATA[
frutto1<br />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
frutto1

<screen>
<![CDATA[
frutto1<br />
frutto4<br />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
frutto4

<![CDATA[
frutto1<br />
frutto4<br />
frutto5<br />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
frutto5

Copy link
Member

@DavidePastore DavidePastore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aggiungo qui la revisione per i file mancanti.

<!-- EN-Revision: 4a7ddddc27271967b616ad3400cfbe2a9b48212b Maintainer: pastore Status: ready -->
<!-- CREDITS: cucinato -->
<!-- EN-Revision: d58ee8eaaa7f716c51f66f5f1058ab3c42376d98 Maintainer: ManueldG Status: ready -->
<!-- Reviewed: no -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<!-- Reviewed: no -->
<!-- Reviewed: yes -->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants