English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP String String Function Manual
The stripslashes() function is used to remove backslashes added by 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 Description |
---|---|
1 | str Used for string search |
Try the following example to 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?