[RFC] Add cyclic string replacements

php.internals

F & N Laupretre

11 years ago
Hi, The RFC about the 'cyclic replacements' addition to str_[i]replace() : https://wiki.php.net/rfc/cyclic-replace The pull request, including a complete implementation of the RFC and the corresponding tests : https://github.com/php/php-src/pull/980 Please prefer PR comments. Regards, François

Dan Ackroyd

11 years ago
Hi François, The RFC is missing one thing if nothing else; a reason for why this functionality would be so much better implemented in the core than in userland code. cheers Dan

François Laupretre

11 years ago
> De : Dan Ackroyd [mailto:danack@basereality.com] > > The RFC is missing one thing if nothing else; a reason for why this > functionality would be so much better implemented in the core than in > userland code.
I thought it was trivial : first, performance and then, ease of use, but I can elaborate.