note 16995 added to function.preg-replace
| From: | bas at bushbaby dot nl | Date: | Wed, 21 Nov 2001 15:59:21 +0000 |
| Subject: | note 16995 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21106@lists.php.net to get a copy of this message | ||
The explanation says: If pattern is an array and replacement is a string; then this replacement
string is used for every value of pattern. The converse would not make sense, though.
I wonder why the converse is not valid. I wish to replace every nth occurance of one pattern with
the nth value of an array. Why shouln't this be possible with this function?
--
http://www.php.net/manual/en/function.preg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+16995
http://master.php.net/manage/user-notes.php?action=delete+16995
http://master.php.net/manage/user-notes.php?action=reject+16995