Home > Backend Development > PHP Tutorial > PHP中 转义的相关问题?

PHP中 转义的相关问题?

WBOY
Release: 2016-06-06 20:44:40
Original
1085 people have browsed it

表单中提交内容: 

<code>echo $_GET['data'];  ---输出为\\\
</code>
Copy after login
Copy after login

php中直接

<code>echo 'ss\\\周ss'; ---结果输出为:ss\\周ss
</code>
Copy after login
Copy after login

请问$_GET 中是怎么处理的?

回复内容:

表单中提交内容: 

<code>echo $_GET['data'];  ---输出为\\\
</code>
Copy after login
Copy after login

php中直接

<code>echo 'ss\\\周ss'; ---结果输出为:ss\\周ss
</code>
Copy after login
Copy after login

请问$_GET 中是怎么处理的?

http://segmentfault.com/q/1010000000597841 楼主看这个

Related labels:
php
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template