English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The slashes() function is used to remove addslashes() Backslashes added by the function.
string stripslashes ( string $str )
Returns the string with backslashes removed.
Returns a string with escape backslashes removed (\' is converted to ' etc.). Double backslashes (\\) are converted to a single backslash (\).
Serial number | Parameters and descriptions |
---|---|
1 | str Used for string search |
Try the following example, remove backslashes from the string:
<?php //Remove backslashes from the string: $str = "Is your name O\'reilly?"; // Output: Is your name O'reilly? echo stripslashes($str); ?>Test and see‹/›
Output result
Is your name O'reilly?