note 51330 added to function.preg-replace
| From: | roger at osu1 dot php dot net | Date: | Sun, 27 Mar 2005 20:35:43 +0000 |
| Subject: | note 51330 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87065@lists.php.net to get a copy of this message | ||
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));
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51330
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51330&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51330&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51330&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51330&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51330&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51330&report=yes
Search -- http://master.php.net/manage/user-notes.php