?>
string stripcslashes(string text)
The stripcslashes function complements addcslashes. It removes backslash
codes that conform to the C style. See addcslashes, above, for more details.
<?
//create some test text
$text = "Line 1\x0ALine 2\x0A";
//convert backslashes to actual characters
print(stripcslashes($text));
?>
string stripslashes(string text)
The stripslashes function returns the text argument with backslash encoding
removed. It complements addslashes. By default, PHP is configured to add slashes to
user input. Use stripslashes to remove slashes before sending submitted form fields
to the browser.
<?
$text = "Leon\'s Test String";
print("Before: $textBR>\n");
print("After: ". stripslashes($text). "BR>\n");
?>
string strrev(string text)
The strrev function returns the text argument in reverse order.
<?
print(strrev("abcdefg"));
?>