Remove backslashes:
<?phpecho stripslashes("Who's Peter Griffin?");?>The stripslashes() function removes backslashes added by the addslashes() function.
Tip: This function can be used to clean data retrieved from the database or from an HTML form.
stripslashes( string )
parameter | describe |
---|---|
string | Required. Specifies the string to check. |
Return value: | Returns a string with backslashes stripped. |
---|---|
PHP version: | 4+ |