HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP stripslashes() Function

PHP String Reference PHP String Reference

Example

Remove the backslash:

<?php
echo stripslashes("Who\'s Peter Griffin?");
?>

Run example »

Definition and Usage

The stripslashes() function removes backslashes added by the addslashes() function.

Tip: This function can be used to clean up data retrieved from a database or from an HTML form.


Syntax

stripslashes(string)

Parameter Description
string Required. Specifies the string to check

Technical Details

Return Value: Returns a string with backslashes stripped off
PHP Version: 4+


PHP String Reference PHP String Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE