Home  >  Article  >  php教程  >  php中stripslashes与 addslashes应用实例

php中stripslashes与 addslashes应用实例

WBOY
WBOYOriginal
2016-06-13 11:19:171058browse

首先测试 magic_quotes_gpc 是否为 ON, 如果是,则用 array_map() 递归还原转义的数据,是否开启了自动addslashes功能只要我们在php.ini里看一就KO了或用get_magic_quotes_gpc()函数来检测哦  

 代码如下 复制代码

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn