note 61936 deleted from function.preg-replace by colder

From: Date: Mon, 18 Jun 2007 19:58:53 +0000
Subject: note 61936 deleted from function.preg-replace by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127685@lists.php.net to get a copy of this message
Note Submitter: elaineseery at hotmail dot com ---- if you're new to this function, and getting an error like 'delimiter must not alphanumeric backslash ... note that whatever is in $pattern (and only $pattern, not $string, or $replacement) must be enclosed by '/ /' (note the forward slashes) e.g. $pattern = '/and/'; $replacement = 'sandy'; $string = 'me and mine'; generates 'me sandy mine' seems to be obvious to everyone else, but took me a while to figure out!!

« previous php.notes (#127685) next »