Function code for php automatic backslash processing. The copy code is as follows: process php automatic backslash if (get_magic_quotes_gpc () {functionstripslashes_deep ($ value) {$ valueis_array ($ value )? Array_map (stripslashes_deep,
The code is as follows:
// Process php automatic backslash
If (get_magic_quotes_gpc ()){
Function stripslashes_deep ($ value)
{
$ Value = is_array ($ value )?
Array_map ('stripslashes _ deep ', $ value ):
Stripslashes ($ value );
Return $ value;
}
$ _ POST = array_map ('stripslashes _ deep ', $ _ POST );
$ _ GET = array_map ('stripslashes _ deep ', $ _ GET );
$ _ COOKIE = array_map ('stripslashes _ deep ', $ _ COOKIE );
}
The http://www.bkjia.com/PHPjc/321016.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/321016.htmlTechArticle code is as follows: // handle php automatic backslash if (get_magic_quotes_gpc () {function stripslashes_deep ($ value) {$ value = is_array ($ value )? Array_map ('stripslashes _ deep ',...