stripcslashes – PHP String Functions
Syntax :
Description :
It’s an inbuilt function of PHP. stripcslashes() function un-quote string quoted with addcslashes(). Recognizes C-like \n, \r …, octal and hexadecimal representation.
Parameter :
- string – This is a Required parameter. The string to be unescaped.
Output :
Returns the unescaped string. Removes the backslashes from string.
Related articles : addslashes(), addcslashes(), stripcslashes().
stripcslashes() – PHP Functions Example 1 :
<?php echo stripcslashes("Who\'s Charles?"); ?>
Output of above code in the browser is as below: