note 51330 deleted from function.preg-replace by nlopess
| From: | nlopess@php.net | Date: | Mon, 28 Mar 2005 11:12:31 +0000 |
| Subject: | note 51330 deleted from function.preg-replace by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-87081@lists.php.net to get a copy of this message | ||
Note Submitter: roger
----
If mysterious slashes occur in your result strings when using preg_replace, you can use
stripslases() to get rid of them like this:
$ResultString=preg_replace($pattern, $replacement,stripslashes($MyString));