处理php自动反斜杠的函数代码
代码如下:
//处理php自动反斜杠 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); }
相关推荐
wyq 2020-11-11
fenxinzi 2020-06-01
Laozizuiku 2019-10-24
刘涛 2011-07-17
JavaLab 2011-05-02
Jonderwu 2019-06-28
SoySauceMan 2018-04-28
zhpchen 2015-12-14
Fangxingt 2016-08-30
ALiDan 2019-04-18
YsuLiuYang 2009-08-21
iamlazyphper 2019-04-16
weixuejunphp 2019-04-12
masaichi 2019-04-12
dmbjzhh 2019-04-04
tmaczt 2009-08-23
囩仴煳 2013-01-23