cvs: phpdoc-fr /reference/array/functions array-chunk.xml

From: Date: Sat, 18 Nov 2006 15:33:47 +0000
Subject: cvs: phpdoc-fr /reference/array/functions array-chunk.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-5103@lists.php.net to get a copy of this message
poz Sat Nov 18 15:33:47 2006 UTC Modified files: /phpdoc-fr/reference/array/functions array-chunk.xml Log: Correction des fins de lignes http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-chunk.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/array/functions/array-chunk.xml diff -u phpdoc-fr/reference/array/functions/array-chunk.xml:1.16 phpdoc-fr/reference/array/functions/array-chunk.xml:1.17 --- phpdoc-fr/reference/array/functions/array-chunk.xml:1.16 Fri Nov 17 16:06:56 2006 +++ phpdoc-fr/reference/array/functions/array-chunk.xml Sat Nov 18 15:33:47 2006 @@ -1,226 +1,114 @@ <?xml version="1.0" encoding="iso-8859-1"?> - -<!-- $Revision: 1.16 $ --> +<!-- $Revision: 1.17 $ --> <!-- EN-Revision: 1.11 Maintainer: didou Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.array-chunk"> - <refnamediv> - <refname>array_chunk</refname> - <refpurpose>Sépare un tableau en tableaux de taille inférieure</refpurpose> - </refnamediv> - <refsect1> - &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></methodparam> - </methodsynopsis> - <para> - <function>array_chunk</function> sépare le tableau - <parameter>input</parameter> en plusieurs tableaux de taille - <parameter>size</parameter>. Il est aussi possible que le - dernier tableau contienne moins de valeurs. Le résultat est un - tableau multidimensionnel, indexé numériquement. - </para> - <para> - En passant la valeur &true; au paramètre optionnel - <parameter>preserve_keys</parameter>, vous pouvez forcer - &php; à préserver les clés originales du tableau - <parameter>input</parameter>. Si vous utilisez la valeur - par défaut (&false;), de nouveaux index numériques seront - fournis, commençant à 0. - </para> - <para> - <example> - <title>Exemple avec <function>array_chunk</function></title> - <programlisting role="php"> - <![CDATA[ - <?php - $input_array = array('a', 'b', 'c', 'd', 'e'); - print_r(array_chunk($input_array, 2)); - print_r(array_chunk($input_array, 2, TRUE)); - ?> - ]]> - </programlisting> - &example.outputs; - <screen> - <![CDATA[ - Array - ( - [0] => Array - ( - [0] => a - [1] => b - ) - - [1] => Array - ( - [0] => c - [1] => d - ) - - [2] => Array - ( - [0] => e - ) - - ) - Array - ( - [0] => Array - ( - [0] => a - [1] => b - ) - - [1] => Array - ( - [2] => c - [3] => d - ) - - [2] => Array - ( - [4] => e - ) - - ) - ]]> - </screen> - </example> - </para> - </refsect1> - </refentry> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> -

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