Magic quotes

Updated: 11/13/2018 by Computer Hope

Magic quotes is a feature found in PHP that when enabled automatically escapes any quotes. For example, if you had a variable that contained lot's of "quotes" it'd be turned into lot\'s of \"quotes\".

If this feature is enabled and you want to disable it or remove any escape slashes, use the stripslashes command. For example,

$example = stripslashes($example)

would strip all slashes from the variable named $example.

Escape, Programming terms, Quote