note 1720 deleted from preg_replace by torben

From: Date: Wed, 13 Sep 2000 22:38:32 +0000
Subject: note 1720 deleted from preg_replace by torben
Groups: php.notes 
Request: Send a blank email to php-notes+get-4863@lists.php.net to get a copy of this message
<p>Note that the original string is <strong>not</strong> modified by this function. The results need to be put in a variable or printed. For example:</p> <pre>$newstring = preg_replace("/oldtext/i", "newtext", $originalstring);</pre> <p>Nothing happens to $originalstring, unlike in Perl substitutions.</p>

« previous php.notes (#4863) next »