PHP stripslashes() function is utilized to remove backslashes from given data included by the addslashes() function.
Syntax:
stripslashes(string)
string : Required. Specifies the input string.
Tip : This function could be utilized to clean up a string recovered from a database.
Example:
<?php
echo stripslashes("Who\'s Sam\ Bru\ce?");
?>
Output will be:
Who's Sam Bruce?
Syntax:
stripslashes(string)
string : Required. Specifies the input string.
Tip : This function could be utilized to clean up a string recovered from a database.
Example:
<?php
echo stripslashes("Who\'s Sam\ Bru\ce?");
?>
Output will be:
Who's Sam Bruce?
0 comments:
Post a Comment