note 26735 added to function.preg-replace-callback

From: Date: Mon, 11 Nov 2002 12:11:21 +0000
Subject: note 26735 added to function.preg-replace-callback
Groups: php.notes 
Request: Send a blank email to php-notes+get-39291@lists.php.net to get a copy of this message
The return value is a single string, so that all the matches get replaced with the same value. As far as I can see the only way to get differing replacement values is to set the third parameter to 1, and call preg_replace_callback repeatedly till no more mathes are found. -- http://www.php.net/manual/en/function.preg-replace-callback.php http://master.php.net/manage/user-notes.php?action=edit+26735 http://master.php.net/manage/user-notes.php?action=delete+26735 http://master.php.net/manage/user-notes.php?action=reject+26735

« previous php.notes (#39291) next »