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: Wednesday, September 25, 2002 7:52 AM Subject: [PHP] replacing literal " in string > Could somebody help me with the correct syntax for an ereg_replace to > replace literal occurences of the quote character in a string. I can't > seem to get it right. > > In other words, I have a form input variable -- that literally may look > like this: "some_value", and I want it to literally look like this: > some_value. > > I tried: > $key=str_replace ("\"", "", "$key"); > and other variations but can't get it to work. > > What am I missing? > > Thanks! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php