Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81614 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78432 invoked from network); 2 Feb 2015 17:00:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 17:00:36 -0000 Authentication-Results: pb1.pair.com header.from=francois@tekwire.net; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=francois@tekwire.net; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain tekwire.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@tekwire.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:27156] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/59-34915-D2DAFC45 for ; Mon, 02 Feb 2015 12:00:35 -0500 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id 575704B01A3 for ; Mon, 2 Feb 2015 17:57:17 +0100 (CET) Reply-To: To: Date: Mon, 2 Feb 2015 18:00:25 +0100 Message-ID: <009b01d03f09$bd263e00$3772ba00$@tekwire.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdA/CXXrJlSWDqu4Q82qJjza/1Miww== Content-Language: fr X-Antivirus: avast! (VPS 150202-0, 02/02/2015), Outbound message X-Antivirus-Status: Clean Subject: [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace) From: francois@tekwire.net (=?iso-8859-1?Q?Fran=E7ois_Laupretre?=) Hi, Opening the vote for : https://wiki.php.net/rfc/cyclic-replace This RFC adds support in str_replace() and str_ireplace() for the combination of (string needle, array replace). In this case, each occurrence of the = needle is replaced with an element of the 'replace' array. Cheers Fran=E7ois