PHP stripclashes
The PHP stripcslashes function is used to convert the backslash added by the addcslashes function to the string back to the original string . It can be said to be the reverse application of the addcslashes function. It is usually used to organize the data retrieved from the database. In addition, The stripcslashes function can determine statements similar to C language \n, \r ... etc.
Basic syntax of PHP stripcslashes function
String stripclashes ($ string)
The string $string in the parentheses of the stripcslashes function is a required item, that is, the string to be converted . Like the stripslashes function, no special characters or characters can be specified, and only the backslash in the string ( \), other symbols cannot be eliminated.
PHP stripcslashes function example
$new_string = "Welcome to \wibibi.It was a very nice day.";
echo $new_string.'<br>';
echo stripslashes($new_string);
?>
Welcome to wibibi.It was a very nice day.
Post a Comment
0 Comments