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

php中stripslashes与 addslashes应用实例

WBOY
Release: 2016-06-13 11:19:17
Original
1136 people have browsed it

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

 代码如下 复制代码

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template