PHP stripcslashes() Function
PHP stripcslashes() Function
The stripcslashes() function in PHP returns a string with backslashes(\n, \r ..., octal and hexadecimal representation) stripped off.
Syntax
stripcslashes ( string $str )
Parameter
str(required)- This parameter signifies the string to be unescaped.
Return
This function returns the unescaped string with backslashes stripped off.
Example 1
Output
Your String is: Hello \PHP\! By using stripcslashes() Function... New String: Hello PHP!
Example 2
Output
Your String is: Hello \PHP\! By using stripcslashes() Function... New String: Hello PHP!
Example 3
Output
Your String is: Hello \\PHP\\! By using stripcslashes() Function... New String: Hello \PHP\!
Example 4
Output
Your String is: Hello \\PHP\\! By using stripcslashes() Function... New String: Hello \PHP\!