note 16995 rejected from function.preg-replace by zak

From: Date: Wed, 21 Nov 2001 16:00:22 +0000
Subject: note 16995 rejected from function.preg-replace by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21107@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?

« previous php.notes (#21107) next »