note 75713 deleted from function.preg-replace by felipe

From: Date: Mon, 10 Dec 2007 02:14:53 +0000
Subject: note 75713 deleted from function.preg-replace by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133096@lists.php.net to get a copy of this message
Note Submitter: anon ---- For the benefit of perl coders, $s =~ s/PATTERN/REPLACEMENT/g; becomes: <? $s = preg_replace('/PATTERN/', 'REPLACEMENT', $s); ?> Note that you have to assign the result back to $s. If your preg_replace doesn't seem to be working, you may have merely forgotten to assign the return to $s.

« previous php.notes (#133096) next »