How to type double quotes. How to prevent single quotes in PHP and how to escape double quotes on the accept page.

WBOY
Release: 2016-07-29 08:38:53
Original
1306 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 to prevent:
Method 1: Set: magic_quotes_gpc = Off in PHP.ini
Method 2: $str=stripcslashes($str)

The above introduces how to type double quotation marks, how to prevent single quotation marks in PHP, and how to set double quotation marks to escape on the accepting page, including how to type double quotation marks. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
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