Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81701 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84046 invoked from network); 3 Feb 2015 11:02:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2015 11:02:33 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.54 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.54 mail-qa0-f54.google.com Received: from [209.85.216.54] ([209.85.216.54:47862] helo=mail-qa0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/2A-20608-7CAA0D45 for ; Tue, 03 Feb 2015 06:02:31 -0500 Received: by mail-qa0-f54.google.com with SMTP id w8so33245596qac.13 for ; Tue, 03 Feb 2015 03:02:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=VFb7/ia4MZI9q2m/yYpOFaqh9+KO6fPAk1zBcx7FZW0=; b=BGNLQGFyrZmJmLxCMDQkFgCLDNZIqd2fIMB1eG4A9Hnn/YQ9B9/Guvz5NulwixKlsS iTW9tS3SYfe9383DY7wexZjr6jXtY3I9ssfSXZ2qg7OFhLcyZcz5NC3RRmcFp5NUeTZz 0knFbyIK316aRvGvTW4ArGIXo9y5igAucKb9m3kqzI8lO5jeQkwWT2gHn09pqW7drcIN aJ1db31lFdpOaufdTZ8yMAKI2Tbfzbw/NgI1SJnhXWSH8ay955XB49plCPDPrsBDDx39 xTGIwKb3Cn3URhfaneWSrCcmt1W8wPn/+ScS0GAJQGPFhHl/kDmMIYG9opKbvWq0RIGP kNCw== X-Received: by 10.224.60.193 with SMTP id q1mr13508364qah.86.1422961348692; Tue, 03 Feb 2015 03:02:28 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.28.72 with HTTP; Tue, 3 Feb 2015 03:01:48 -0800 (PST) In-Reply-To: <009b01d03f09$bd263e00$3772ba00$@tekwire.net> References: <009b01d03f09$bd263e00$3772ba00$@tekwire.net> Date: Tue, 3 Feb 2015 20:01:48 +0900 X-Google-Sender-Auth: htFQTCu7an_xQmm5mwLVtrLxhBU Message-ID: To: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1133dee6b7d1fc050e2d0163 Subject: Re: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace) From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1133dee6b7d1fc050e2d0163 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Francois, On Tue, Feb 3, 2015 at 2:00 AM, Fran=C3=A7ois Laupretre wrote: > 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 need= le > is replaced with an element of the 'replace' array. > I guess you mean discussion? Example code would be nice for this RFC. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1133dee6b7d1fc050e2d0163--