The FILTER_SANITIZE_MAGIC_QUOTES filter performs the addslashes() function on a string.
This filter sets a backslash in front of a predefined string.
The predefined characters are:
single quote(')
Double quotes (")
backslash()
NULL
FILTER_SANITIZE_MAGIC_QUOTES message:
Name: "magic_quotes"
ID-number: 521
The output of the code looks like this:
string(14) "Peter's here!"