Strip Slashes and Quotes

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

How do I take the following string


and get rid of the \'

I tried
the following
$msg =  "`LastName`=\'Last\',`FirstName`=\'First\";
$msg =  str_replace('\"', '"',$msg );

But it did not work

Re: Strip Slashes and Quotes

wagon wrote:
Quoted text here. Click to load it

Did you try the function stripslashes()?

$msg = stripslashes($msg);


Site Timeline