How do I remove escape characters from data?
<?php
$data = "I\'m the king of the castle";
echo stripslashes($data); //I'm the king of the castle
?>
Comments on this Question/Answer
Can I eliminate escape character from data with out using magic quotes methodsBy: vipin s v, 16 Jul 2009 02:06:42
Reply to comments / post your own comment >>>
ASK A QUESTION
More forms PHP Questions
What are causes of seeing the actualPHP code in my web browserHow do I remove HTML tags from a string?
how do i validate the name into form ?
How do I escape data that is going into a database?
I am taking over a position from another programmer, and want to change some php code, but part of it has me baffled. The code creates a form and after it is filled, the client wants it to go to a separate thank you page – right now, it re-uses the for
