Return to Snippet

Revision: 5658
at March 23, 2008 14:43 by eeppeliteloop


Initial Code
function remSlash($varvar) {
	if (get_magic_quotes_gpc()) {
		$varRem = stripslashes($varvar);
	}
	else {
		$varRem = $varvar;
	}

	return $varRem;
}

// Ex.: $no_slash = remSlash($_POST['name']);

Initial URL


Initial Description
Removes the automatic slashes from POST & GET data if it finds Magic Quotes is activated.

Initial Title
Remove slashes function

Initial Tags


Initial Language
PHP