PHP stripslashes() Function
PHP stripslashes() Function
The stripslashes() Function in PHP removes backslashes or un-quotes a quoted string.
Syntax
stripslashes ( string $str )
Parameter
str(required)- This parameter signifies the input string.
Return
This function returns a string with backslashes stripped off and the double backslashes (\\) are made into a single backslash (\).
Example 1
Output
The string: My name is \Reema\. After using the stripslashes() function New string: My name is Reema.
Example 2
Output
The string: My name is \Reema\. After using the stripslashes() function New string: My name is Reema.
Example 3
Output
Your String is: Hello \\PHP\\! By using stripslashes() Function... New String: Hello \PHP\!