Re: 回复: [RFC][DISCUSSION] Ad d preg_replace_callback_array function
| From: | Marc Bennewitz | Date: | Sat, 21 Mar 2015 18:30:27 +0000 |
| Subject: | Re: 回复: [RFC][DISCUSSION] Ad d preg_replace_callback_array function | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-85384@lists.php.net to get a copy of this message | ||
I also had a question! Didn't you noticed it?
Am 20.03.2015 um 16:49 schrieb Marc Bennewitz:
Why not simply allow the callback to be an array, too?Marc Am 21.03.2015 um 09:14 schrieb Xinchen Hui:
Hey: On Fri, Mar 20, 2015 at 9:14 PM, Xinchen Hui <laruence@php.net> wrote:Hey: On Fri, Mar 20, 2015 at 7:53 PM, Alain Williams <addw@phcomp.co.uk> wrote:merged thanksOn Fri, Mar 20, 2015 at 10:46:58PM +1100, Pierre Joye wrote:I also +1 for this. if there is no objections raises, I am going to merge it tomorrow..On Fri, Mar 20, 2015 at 7:03 PM, Wei Dai <zxcvdavid@gmail.com> wrote:I used s/something/code/ge in a perl script that I wrote a few days ago. Very useful. It would have been a lot more work to do it another way. So: +1 to the ability to do this, regardless of what mechanism is eventually chosen.Hi internals,Nice job, i like the idea. I am not sure about a RFC or not. It somehow looks like a sane replacement for something we killed (with good reasons). Let see what the other think :)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:I’ve sent this mail for four days, I don’t know if this RFC needs a vote. If you guys have no objections on this, please review the code and merge it, thanks.preg_replace_callback_array()that is the better way to Implement when there are multiple patterns need to replace. I would love to hear your feedback! :) Any objections?thanks-- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include <std_disclaimer.h> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php-- Xinchen Hui @Laruence http://www.laruence.com/