PHP prevents single quotes and double quotes from escaping on the accept page_PHP tutorial

WBOY
Release: 2016-07-21 15:51:17
Original
818 people have browsed it

If you do not want the following situation to occur in the PHP page:

Single quotes are escaped as /'

Double quotes are escaped as /"

Then you can make the following settings: Prevent:

Method 1: Set: magic_quotes_gpc = Off in php.ini

Method 2: $str=stripcslashes($str)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319226.htmlTechArticleIf you do not want the following situations to occur in the PHP page: Single quotes are escaped as /' Double quotes are escaped as /" Then you can make the following settings to prevent it: Method 1: Set in php.ini: magic_quotes_gp...
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