RE: [PHP] str_replace oddity

2007-09-23 Thread Peter Lauri
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: I am using str_replace to strip double quotes. $string = 'This string has quotes

Re: [PHP] str_replace oddity

2007-09-22 Thread Jim Lucas
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,

Re: [PHP] str_replace oddity

2007-09-22 Thread heavyccasey
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 I put the $string

[PHP] str_replace oddity

2007-09-21 Thread Kevin Waterson
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