``` --- ## Definition and Usage The `stripslashes()`"> ``` --- ## Definition and Usage The `stripslashes()`" />
Easy Tutorial
❮ Func Mysqli Fetch Row Func Mysqli Fetch Assoc ❯

PHP stripslashes() Function

PHP String Reference Manual

Example

Removing backslashes:

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

Definition and Usage

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

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


Syntax

Parameter Description
string Required. Specifies the string to be checked.

Technical Details

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

❮ Func Mysqli Fetch Row Func Mysqli Fetch Assoc ❯