note 19475 added to function.ereg-replace

From: Date: Thu, 28 Feb 2002 16:03:44 +0000
Subject: note 19475 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-27172@lists.php.net to get a copy of this message
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. -- http://www.php.net/manual/en/function.ereg-replace.php http://master.php.net/manage/user-notes.php?action=edit+19475 http://master.php.net/manage/user-notes.php?action=delete+19475 http://master.php.net/manage/user-notes.php?action=reject+19475

« previous php.notes (#27172) next »