Escape characters won't go away

From: Date: Mon, 02 Sep 2002 03:14:37 +0000
Subject: Escape characters won't go away
Groups: php.general 
Request: Send a blank email to php-general+get-114866@lists.php.net to get a copy of this message
I'm getting multiple backslashes in data I get out of a mysql database. Example : ...Here\\\'s the d... No problem. Except I CANT GET RID OF THEM. I've tried several things: 1. $string = stripslashes($string); - Doesn't do anything 2. $string = ereg_replace("\\\\\\", "", $string); - Doesn't do anything 3. $string = ereg_replace("\\", "", $string); - Gives the following error message: Warning: REG_EESCAPE in script.php on line 1684 None of these have worked. Any thoughts on how to get rid of them? I'm going batty. Mike

« previous php.general (#114866) next »