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 PR
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);
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); - Does
3 matches
Mail list logo