cvs: phpdoc-fr /reference/strings/functions explode.xml

From: Date: Fri, 03 Apr 2009 05:13:19 +0000
Subject: cvs: phpdoc-fr /reference/strings/functions explode.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-6914@lists.php.net to get a copy of this message
dams Fri Apr 3 05:13:19 2009 UTC Modified files: /phpdoc-fr/reference/strings/functions explode.xml Log: synch with en http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/explode.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc-fr/reference/strings/functions/explode.xml diff -u phpdoc-fr/reference/strings/functions/explode.xml:1.21 phpdoc-fr/reference/strings/functions/explode.xml:1.22 --- phpdoc-fr/reference/strings/functions/explode.xml:1.21 Thu Jan 22 05:20:46 2009 +++ phpdoc-fr/reference/strings/functions/explode.xml Fri Apr 3 05:13:19 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> -<!-- EN-Revision: 1.19 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.22 $ --> +<!-- EN-Revision: 1.20 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.explode"> @@ -15,10 +15,11 @@ <type>array</type><methodname>explode</methodname> <methodparam><type>string</type><parameter>delimiter</parameter></methodparam> <methodparam><type>string</type><parameter>string</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>-1</initializer></methodparam> + <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> </methodsynopsis> <para> - Retourne un tableau de chaînes, chacune d'elle étant une sous-chaîne + <function>explode</function> rRetourne un tableau de chaînes, + chacune d'elle étant une sous-chaîne du paramètre <parameter>string</parameter> extraite en utilisant le séparateur <parameter>delimiter</parameter>. </para> @@ -48,13 +49,19 @@ <term><parameter>limit</parameter></term> <listitem> <para> - Si <parameter>limit</parameter> est défini, le tableau retourné contiendra, au maximum, - <parameter>limit</parameter> éléments, dont le dernier élément contiendra le reste - de la chaîne. + Si <parameter>limit</parameter> est défini et positif, + le tableau retourné contient, au maximum, + <parameter>limit</parameter> éléments, et le dernier + élément contiendra le reste de la chaîne. </para> <para> - Si le paramètre <parameter>limit</parameter> est négatif, tous les éléments, - excepté les -<parameter>limit</parameter> derniers éléments sont retournés. + Si le paramètre <parameter>limit</parameter> est négatif, + tous les éléments, excepté les -<parameter>limit</parameter> + derniers éléments sont retournés. + </para> + <para> + Si <parameter>limit</parameter> vaut zéro, il est traité + comme valant 1. </para> </listitem> </varlistentry> @@ -138,7 +145,7 @@ </para> <para> <example> - <title>Exemple avec le paramètre <parameter>limit</parameter></title> + <title>Exemple avec <function>explode</function></title> <programlisting role="php"> <![CDATA[ <?php

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