On 2 February 2015 at 17:00, François Laupretre <franc...@tekwire.net> 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
> is replaced with an element of the 'replace' array.
>
> Cheers
>
> François
>

I think I would much prefer a str_replace_callback to compliment
preg_replace_callback. This would make it trivial to implement a
cyclic replacement or any other scheme you desire.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to