Re: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)

2015-02-04 Thread Derick Rethans
On Mon, 2 Feb 2015, François Laupretre wrote: > Opening the vote for : > > https://wiki.php.net/rfc/cyclic-replace There doesn't seem to be a voting option? In any case, there are no code examples in that RFC. I think they really ought to be part of it. cheers, Derick -- PHP Internals - PHP

RE: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)

2015-02-03 Thread François Laupretre
>De : yohg...@gmail.com [mailto:yohg...@gmail.com] De la part de Yasuo Ohgaki >On Tue, Feb 3, 2015 at 2:00 AM, François Laupretre >wrote: >Opening the vote for : > https://wiki.php.net/rfc/cyclic-replace > I guess you mean discussion? Actually, I wanted to open the vote, as discussion took pl

Re: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)

2015-02-03 Thread Andrey Andreev
On Feb 3, 2015 1:08 PM, "Andrey Andreev" wrote: > > Hi, > > On Mon, Feb 2, 2015 at 7:58 PM, François Laupretre wrote: > >> De : Andrey Andreev [mailto:n...@devilix.net] > >> > >> I seem to have missed the new parameter (and constants) addition > >> during the discussion ... sorry to say this, but

Re: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)

2015-02-03 Thread Andrey Andreev
Hi, On Mon, Feb 2, 2015 at 7:58 PM, François Laupretre wrote: >> De : Andrey Andreev [mailto:n...@devilix.net] >> >> I seem to have missed the new parameter (and constants) addition >> during the discussion ... sorry to say this, but that one would >> probably fail the RFC. > > Mmh... I don't lik

Re: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)

2015-02-03 Thread Yasuo Ohgaki
Hi Francois, On Tue, Feb 3, 2015 at 2:00 AM, François 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 th

RE: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)

2015-02-02 Thread François Laupretre
> De : Andrey Andreev [mailto:n...@devilix.net] > > I seem to have missed the new parameter (and constants) addition > during the discussion ... sorry to say this, but that one would > probably fail the RFC. Mmh... I don't like the idea of adding a parameter but several people argued that we need

Re: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)

2015-02-02 Thread Leigh
On 2 February 2015 at 17:00, François Laupretre wrote: > 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 >

Re: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)

2015-02-02 Thread Leigh
I missed the discussion on this entirely. I see it took place in a non-obvious thread, in which Nikita asked: On 10 January 2015 at 11:53, Nikita Popov wrote: > When submitting an RFC, please open a separate thread. Otherwise people who > do not follow every single discussion will not see it. >

Re: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)

2015-02-02 Thread Andrey Andreev
Hi, On Mon, Feb 2, 2015 at 7:00 PM, François Laupretre wrote: > 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

[PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)

2015-02-02 Thread François 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çois