Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84969 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45766 invoked from network); 16 Mar 2015 02:22:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 02:22:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=zxcvdavid@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zxcvdavid@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.177 as permitted sender) X-PHP-List-Original-Sender: zxcvdavid@gmail.com X-Host-Fingerprint: 74.125.82.177 mail-we0-f177.google.com Received: from [74.125.82.177] ([74.125.82.177:34818] helo=mail-we0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/7D-06614-36E36055 for ; Sun, 15 Mar 2015 21:22:28 -0500 Received: by webcq43 with SMTP id cq43so28376834web.2 for ; Sun, 15 Mar 2015 19:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=0Wn+BnrTgWhd7+Ul3WtZtuP9woz0N3a41Oadn/rJz6Y=; b=dtS6uRd3KO+x0oWldKCjmA3z/zZ44ae6sgd69PaZPgf9eWN4eL7Gi+45GSPKeCkMWS NkTlemIiFLGjL+8uWw0k70LtEPGaBJ2aus0bIIQV9YCr89j267BtqTGuon4y7gDmmtJx Df++4rTWhfkDLRux5pP6FRc97efwnTw8Fg+FHPHQOUDUPs9+v6RzujN6Mq43LdCpn1YY Xym7/d4v62/pnDCK7uwsrgVUdKHJqss9+OvJl9SHLhqM7qKaGXxc6davrEN2qgDxqWxS RL0ENb07/aF8lSo42JU87hMXG1djfrCHvcRzFm6CZs0fk7Z1O7qGnEG6l3veq4DkIz53 dFZQ== MIME-Version: 1.0 X-Received: by 10.180.108.203 with SMTP id hm11mr82065246wib.49.1426472544893; Sun, 15 Mar 2015 19:22:24 -0700 (PDT) Received: by 10.27.210.6 with HTTP; Sun, 15 Mar 2015 19:22:24 -0700 (PDT) Date: Mon, 16 Mar 2015 10:22:24 +0800 Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [RFC][DISCUSSION] Add preg_replace_callback_array function From: zxcvdavid@gmail.com (David Dai) 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! :) =E2=80=94 Best, Wei Dai