Thanks.  I just figured it out myself.  I had to change the expression:

$string= ereg_replace("[\\]+", "", $string);

The above is what worked.

Mike


"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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

Reply via email to