Re: [PHP] replacing literal " in string

2002-09-25 Thread Tom Rogers
Hi, Thursday, September 26, 2002, 12:02:29 AM, you wrote: RM> Could somebody help me with the correct syntax for an ereg_replace to RM> replace literal occurences of the quote character in a string. I can't RM> seem to get it right. RM> In other words, I have a form input variable -- that liter

Re: [PHP] replacing literal " in string

2002-09-25 Thread Kevin Stone
Robert, That str_replace() you wrote should work. But you might also try these variations.. $key = str_replace('"', '', $key); $key = str_replace(chr(34), '', $key); Good luck, Kevin - Original Message - From: "ROBERT MCPEAK" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesda