Convert backslashed strings


 $MyString = "a\"b";
 echo $MyString;									//Will output: a\"b
 echo stripcslashes($MyString);		//Will output: a"b

If stripcslashes() doesn't work try using it at the point of outputting the string to the browser, at the echo call.  Using it to convert a string and store in a string won't necessarily work!

 

Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *