cvs: phpdoc-fr /reference/array/functions array-filter.xml array-map.xml array-merge.xml

From: Date: Thu, 23 Dec 2004 15:51:07 +0000
Subject: cvs: phpdoc-fr /reference/array/functions array-filter.xml array-map.xml array-merge.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-3757@lists.php.net to get a copy of this message
dams Thu Dec 23 10:51:07 2004 EDT Modified files: /phpdoc-fr/reference/array/functions array-filter.xml array-map.xml array-merge.xml Log: sync with en http://cvs.php.net/diff.php/phpdoc-fr/reference/array/functions/array-filter.xml?r1=1.14&r2=1.15&ty=u Index: phpdoc-fr/reference/array/functions/array-filter.xml diff -u phpdoc-fr/reference/array/functions/array-filter.xml:1.14 phpdoc-fr/reference/array/functions/array-filter.xml:1.15 --- phpdoc-fr/reference/array/functions/array-filter.xml:1.14 Mon Nov 1 12:34:47 2004 +++ phpdoc-fr/reference/array/functions/array-filter.xml Thu Dec 23 10:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.15 Maintainer: dams Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.16 Maintainer: dams Status: ready --> <refentry id="function.array-filter"> <refnamediv> <refname>array_filter</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/array/functions/array-map.xml?r1=1.15&r2=1.16&ty=u Index: phpdoc-fr/reference/array/functions/array-map.xml diff -u phpdoc-fr/reference/array/functions/array-map.xml:1.15 phpdoc-fr/reference/array/functions/array-map.xml:1.16 --- phpdoc-fr/reference/array/functions/array-map.xml:1.15 Mon Nov 1 12:34:49 2004 +++ phpdoc-fr/reference/array/functions/array-map.xml Thu Dec 23 10:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.13 Maintainer: dams Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.15 Maintainer: dams Status: ready --> <refentry id="function.array-map"> <refnamediv> <refname>array_map</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/array/functions/array-merge.xml?r1=1.25&r2=1.26&ty=u Index: phpdoc-fr/reference/array/functions/array-merge.xml diff -u phpdoc-fr/reference/array/functions/array-merge.xml:1.25 phpdoc-fr/reference/array/functions/array-merge.xml:1.26 --- phpdoc-fr/reference/array/functions/array-merge.xml:1.25 Mon Nov 1 12:34:49 2004 +++ phpdoc-fr/reference/array/functions/array-merge.xml Thu Dec 23 10:51:06 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.25 $ --> -<!-- EN-Revision: 1.14 Maintainer: didou Status: ready --> +<!-- $Revision: 1.26 $ --> +<!-- EN-Revision: 1.15 Maintainer: dams Status: ready --> <refentry id="function.array-merge"> <refnamediv> <refname>array_merge</refname> @@ -154,7 +154,40 @@ par les clés identiques suivantes. </para> </note> - <para> +    <warning> +     <para> +      Le comportement de <function>array_merge</function> a été modifié en &php; 5.  + Contrairement à &php; 4, <function>array_merge</function> n'accepte que + des paramètres de type <type>array</type>. Cependant, vous pouvez utiliser + le transtypage pour fusionner les autres de types de valeurs. + Voyez l'exemple ci-dessous. +     </para> +     <para> +      <example> +       <title>Exemple avec <function>array_merge</function> en &php; 5</title> +       <programlisting role="php"> +<![CDATA[ +<?php +$beginning = 'foo'; +$end = array(1 => 'bar'); +$result = array_merge((array)$beginning, (array)$end); +?> +]]> +       </programlisting> +       &example.outputs; +       <screen role="php"> +<![CDATA[ +Array +( +    [0] => foo +    [1] => bar +) +]]> +       </screen> +      </example> +     </para> +    </warning> + <para> Voir aussi <function>array_merge_recursive</function>, <function>array_combine</function> et

« previous php.doc.fr (#3757) next »