# [RFC][DISCUSSION] Add preg_replace_callback_array function

- Thread: https://externals.io/message/84969
- Original archive: https://news-web.php.net/php.internals/84969
- Started by David Dai on 2015-03-16T02:22:24+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #84969 — David Dai — 2015-03-16T02:22:24+00:00

URL: https://externals.io/message/84969#84969

Hi internals,

The RFC to add a user-land function for an easy-to-use and reliable
 `preg_replace_callback_array()` in PHP is up for discussion:
https://wiki.php.net/rfc/preg_replace_callback_array


This proposes adding one function: `preg_replace_callback_array()` that
is the better way to Implement when there are multiple patterns need to
replace.

Any objections?
I would love to hear your feedback! :)

—
Best,
Wei Dai
