Magic quotes

Updated: 04/26/2017 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 $example variable.

Escape, PHP, Programming terms, Quote