Since PHP is no longer supported for MAGIC_QUOTES_GPC functions over PHP5.4.3, I want to directly
if (php_version >= 5.4 | |!GET_MAGIC_QUOTES_GPC ())
{
$_request = Array_map (' addslashes ', $_request);
$_post = Array_map (' addslashes ', $_post);
$_get = Array_map (' addslashes ', $_get);
}
To resolve the ', ' problem in the user submission data, but found that the ARRAY_MAP function cannot resolve the problem of recursion if the control name is more than one of the same names, similar to ck[], and
Using Array_walk_recursive, and back to the hint fatal error:call-time pass-by-reference has been removed, please PHP5.4.3 the above version can have a function to solve this problem
Reply to discussion (solution)
http://bbs.csdn.net/topics/390936241
can refer to the following
Array_walk_recursive ($_post, function (& $v) {$v = Addslashes ($v);});Other similar