update old file in reference/array/function/#67
update old file in reference/array/function/#67ManueldG wants to merge 49 commits intophp:masterfrom
Conversation
|
updated array-filter.xml |
|
ok
Il giorno lun 10 feb 2025 alle ore 11:03 Davide Pastore <
***@***.***> ha scritto:
… Hi @ManueldG <https://github.com/ManueldG>. Could you please sync this PR
with the master branch
<https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/keeping-your-pull-request-in-sync-with-the-base-branch>
?
—
Reply to this email directly, view it on GitHub
<#67 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARXQKK5PQPYWOMBKIOONOHD2PB2OJAVCNFSM6AAAAABWXD7GRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBXGUYDANJSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
updated: reference/array/functions/array-change-key-case.xml |
ManueldG
left a comment
There was a problem hiding this comment.
cleaned PR from old files
|
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? |
|
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? |
updated :array-replace-recursive.xml
…-combine.xml, array-map.xml
updated :extract.xml updated :array-multisort.xml
…o original-doc
could you check these updates? |
b65125b to
b88298a
Compare
|
@ManueldG, puoi risolvere i conflitti in questa PR? |
DavidePastore
left a comment
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
| 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 --> |
There was a problem hiding this comment.
| <!-- 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. |
There was a problem hiding this comment.
| 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. |
There was a problem hiding this comment.
| 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>; |
There was a problem hiding this comment.
| 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); |
There was a problem hiding this comment.
| array_key_exists('primo', $search_array); |
|
|
||
| // restituisce true | ||
| array_key_exists('primo', $search_array); | ||
| // restituisce true |
There was a problem hiding this comment.
| // restituisce true | |
| var_dump(isset($searchArray['primo'])); |
| // restituisce true | ||
| array_key_exists('primo', $search_array); | ||
| // restituisce true | ||
| array_key_exists('primo', $search_array); |
There was a problem hiding this comment.
| array_key_exists('primo', $search_array); | |
| var_dump(array_key_exists('primo', $searchArray)); |
| <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> | ||
|
|
There was a problem hiding this comment.
Questa sezione andrebbe rimossa secondo quello che viene riportato qui.
| array_key_exists('primo', $search_array); | ||
| ?> | ||
| ]]> | ||
| </programlisting> |
There was a problem hiding this comment.
Sotto questo tag manca qualcosa secondo quanto riportato qui.
DavidePastore
left a comment
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
| <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> |
There was a problem hiding this comment.
| all'indice corrispondente dell'elemento dell'<parameter>array</parameter> | |
| al valore corrispondente dell'<parameter>array</parameter> |
DavidePastore
left a comment
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
| 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> |
There was a problem hiding this comment.
| 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 |
There was a problem hiding this comment.
| 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). |
There was a problem hiding this comment.
| 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). | ||
|
|
| while ($nome_frutto = current($array)( { | ||
| if ($nome_frutto == 'mela') { | ||
| echo key($array).'<br />'; | ||
| // questo ciclo mostra tute le chiavi associative |
There was a problem hiding this comment.
| // 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" |
There was a problem hiding this comment.
| //dell'array che sono aguali a "mela" | |
| // in cui il valore è uguale a "mela" |
| &example.outputs; | ||
| <screen> | ||
| <![CDATA[ | ||
| frutto1<br /> |
| <screen> | ||
| <![CDATA[ | ||
| frutto1<br /> | ||
| frutto4<br /> |
| <![CDATA[ | ||
| frutto1<br /> | ||
| frutto4<br /> | ||
| frutto5<br /> |
DavidePastore
left a comment
There was a problem hiding this comment.
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 --> |
There was a problem hiding this comment.
| <!-- Reviewed: no --> | |
| <!-- Reviewed: yes --> |
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