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

From: Date: Thu, 05 Sep 2002 10:53:32 +0000
Subject: cvs: phpdoc-fr /reference/array/functions array-merge-recursive.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-42@lists.php.net to get a copy of this message
dams Thu Sep 5 06:53:32 2002 EDT Modified files: /phpdoc-fr/reference/array/functions array-merge-recursive.xml Log: Correcting example Index: phpdoc-fr/reference/array/functions/array-merge-recursive.xml diff -u phpdoc-fr/reference/array/functions/array-merge-recursive.xml:1.1 phpdoc-fr/reference/array/functions/array-merge-recursive.xml:1.2 --- phpdoc-fr/reference/array/functions/array-merge-recursive.xml:1.1 Sun Apr 14 20:21:59 2002 +++ phpdoc-fr/reference/array/functions/array-merge-recursive.xml Thu Sep 5 06:53:32 2002 @@ -37,17 +37,39 @@ <example> <title>Exemple avec <function>array_merge_recursive</function></title> <programlisting role="php"> -&lt;?php - $ar1 = array ("couleur" =&gt; array ("favorie" ?&gt; "rouge"), 5); - $ar2 = array (10, "couleur" ?&gt; array ("favorie" ?&gt; "vert", "rouge")); - $result = array_merge_recursive ($ar1, $ar2); -?&gt; +<![CDATA[ +<?php + $ar1 = array("couleur" => array("favorie" => "rouge"), 5); + $ar2 = array(10, "couleur" => array("favorie" => "vert", "rouge")); + $result = array_merge_recursive($ar1, $ar2); + print_r($result); +?> +]]> </programlisting> </example> </para> <para> Le r&eacute;sultat sera - <literal>array("couleur" =&gt; array("favorie" =&gt; array ("rouge", "vert"), "bleu"), 5, 10)</literal>. + <programlisting> +<![CDATA[ +Array +( + [couleur] => Array + ( + [favorie] => Array + ( + [0] => rouge + [1] => vert + ) + + [0] => rouge + ) + + [0] => 5 + [1] => 10 +) +]]> + </programlisting> </para> <para> Voir aussi

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