note 19475 deleted from function.ereg-replace by didou
| From: | didou@php.net | Date: | Sat, 17 May 2003 16:53:03 +0000 |
| Subject: | note 19475 deleted from function.ereg-replace by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48183@lists.php.net to get a copy of this message | ||
Note Submitter: frank@nforce .com
I had difficulty removing backslashes from text. the following worked for me:
$x= "I\'m not ... etc.";
$x=preg_replace("[\x5c\]","",$x);
echo $x;
//will print I'm not...etc.