com doc/fr: Sync implode() docs with EN: reference/strings/functions/implode.xml

[email protected] (George Peter Banyard)
Newsgroups php.doc.fr
Message-ID <[email protected]>
Commit:    63a8bcc7543e776aa8cd11a3b2059eb38832aba8
Author:    George Peter Banyard <[email protected]>         Sat, 2 Jan 2021 19:13:08 +0100
Parents:   2e325888d6aa9d059f16edd206e627b7c84b65eb
Branches:  master

Link:       http://git.php.net/?p=doc/fr.git;a=commitdiff;h=63a8bcc7543e776aa8cd11a3b2059eb38832aba8

Log:
Sync implode() docs with EN

Changed paths:
  M  reference/strings/functions/implode.xml


Diff:
diff --git a/reference/strings/functions/implode.xml b/reference/strings/functions/implode.xml
index 9244629802..fd1a996c21 100644
--- a/reference/strings/functions/implode.xml
+++ b/reference/strings/functions/implode.xml
@@ -1,9 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: e50c87114588f058084e4cca47b95ddbe4a3bb1c Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 3c969c420f1232ac0946c70d3d6bb90d7f4e9c31 Maintainer: yannick Status: ready -->
 <!-- Reviewed: no -->
-
-<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.implode">
+<refentry xml:id="function.implode" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>implode</refname>
   <refpurpose>Rassemble les éléments d'un tableau en une chaîne</refpurpose>
@@ -13,25 +12,22 @@
   &reftitle.description;
   <methodsynopsis>
    <type>string</type><methodname>implode</methodname>
-   <methodparam><type>string</type><parameter>glue</parameter></methodparam>
-   <methodparam><type>array</type><parameter>pieces</parameter></methodparam>
+   <methodparam><type>string</type><parameter>separator</parameter></methodparam>
+   <methodparam><type>array</type><parameter>array</parameter></methodparam>
+  </methodsynopsis>
+  <methodsynopsis>
+   <type>string</type><methodname>implode</methodname>
+   <methodparam><type>array</type><parameter>array</parameter></methodparam>
   </methodsynopsis>
+  <simpara>Signature antérieure (obsolète à partir de PHP 7.4.0, retirée à partir de PHP 8.0.0) :</simpara>
   <methodsynopsis>
    <type>string</type><methodname>implode</methodname>
-   <methodparam><type>array</type><parameter>pieces</parameter></methodparam>
+   <methodparam><type>array</type><parameter>array</parameter></methodparam>
+   <methodparam><type>string</type><parameter>separator</parameter></methodparam>
   </methodsynopsis>
   <para>
    Rassemble les éléments d'un tableau en une chaîne.
   </para>
-  <note>
-   <para>
-    <function>implode</function> peut, pour des raisons historiques,
-    accepter les paramètres dans un sens ou dans l'autre. Pour des raisons
-    de cohérence avec <function>explode</function>, toutefois, il est
-    <emphasis>obsolète</emphasis> de ne pas utiliser l'ordre des arguments tels
-    que documenté.
-   </para>
-  </note>
  </refsect1>
 
  <refsect1 role="parameters">
@@ -39,7 +35,7 @@
   <para>
    <variablelist>
     <varlistentry>
-     <term><parameter>glue</parameter></term>
+     <term><parameter>separator</parameter></term>
      <listitem>
       <para>
        Par défaut, une chaîne vide.
@@ -47,7 +43,7 @@
      </listitem>
     </varlistentry>
     <varlistentry>
-     <term><parameter>pieces</parameter></term>
+     <term><parameter>array</parameter></term>
      <listitem>
       <para>
        Le tableau de chaînes à rassembler.
@@ -62,8 +58,8 @@
   &reftitle.returnvalues;
   <para>
    Retourne une chaîne contenant la représentation en chaîne de caractères
-   de tous les éléments du tableau <parameter>pieces</parameter>, dans le
-   même ordre, avec la chaîne <parameter>glue</parameter>, placée entre
+   de tous les éléments du tableau <parameter>array</parameter>, dans le
+   même ordre, avec la chaîne <parameter>separator</parameter>, placée entre
    deux éléments.
   </para>
  </refsect1>
@@ -80,10 +76,17 @@
     </thead>
     <tbody>
      <row>
+      <entry>8.0.0</entry>
+      <entry>
+       Passer le <parameter>separator</parameter> après <parameter>array</parameter>
+       n'est plus supporté.
+      </entry>
+     </row>
+     <row>
       <entry>7.4.0</entry>
       <entry>
-       Passer <parameter>glue</parameter> après les <parameter>pieces</parameter>
-       (i.e. ne pas utiliser l'ordre documenté des paramètres) a été rendu obsolète.
+       Passer <parameter>separator</parameter> après les <parameter>array</parameter>
+       (i.e. utilisant la signature antérieure) a été rendu obsolète.
       </entry>
      </row>
     </tbody>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.