0 AM
> To: Jim Lucas
> Cc: Kevin Waterson; php-general@lists.php.net
> Subject: Re: [PHP] str_replace oddity
>
> So replace ' \" ' instead of ' " '.
>
> On 9/22/07, Jim Lucas <[EMAIL PROTECTED]> wrote:
> > Kevin Waterson wrote:
> >
So replace ' \" ' instead of ' " '.
On 9/22/07, Jim Lucas <[EMAIL PROTECTED]> wrote:
> Kevin Waterson wrote:
> > I am using str_replace to strip double quotes.
> >
> > $string = 'This string has "quotes" in it';
> >
> > $string = str_replace('"', '', $string);
> >
> > this seems to work, yet when
Kevin Waterson wrote:
I am using str_replace to strip double quotes.
$string = 'This string has "quotes" in it';
$string = str_replace('"', '', $string);
this seems to work, yet when I put the $string into mysql,
it uses backslashes to escape where the quotes were. The
double-quotes are gone,
I am using str_replace to strip double quotes.
$string = 'This string has "quotes" in it';
$string = str_replace('"', '', $string);
this seems to work, yet when I put the $string into mysql,
it uses backslashes to escape where the quotes were. The
double-quotes are gone, yet it still escapes the
4 matches
Mail list logo