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

From: Date: Mon, 02 Feb 2015 17:58:12 +0000
Subject: RE: [PHP-DEV] [VOTE] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-81623@lists.php.net to get a copy of this message
> De : Andrey Andreev [mailto:narf@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 needed a way to control looping behavior, as the original idea was to loop through the replace array. But I am still hesitating. Instead of voting on the RFC, please tell me which behavior you prefer : - an options argument to decide on the looping behavior, - always stopping replacements when the replace array is exhausted - always looping The other options are too exotic to become the default behavior. Cheers François

« previous php.internals (#81623) next »