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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php