on 02/09/02 1:14 PM, Mike Mannakee ([EMAIL PROTECTED]) wrote: > 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
have you tried: $string = stripslashes(stripslashes($string)); // OR $string = stripslashes(stripslashes(stripslashes($string))); For multiple occurrences, you have to call it twice... or even three times. also try $string = str_replace("\'", "", $string); $string = str_replace("\\", "", $string); Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php