In PHP, single and double quotes are not interoperable, the specific difference is as follows:
The fields inside the double quotes are interpreted by the compiler and then exported as HTML code.
' Single quotes inside without explanation, direct
In PHP, a string is usually defined in a pair of quotation marks.Follow these steps: The code is as follows:Copy code $ Out = str_replace (array ('RN ', 'R', 'n'), '', $ out); PHP provides three methods to define strings: single quotes, double
Original address: http://wenku.baidu.com/view/3e6a238271fe910ef12df806
"The distinction and usage of single and double quotes." Now the answer is summed up, written in this small essay. The fields inside the double quotes are interpreted by the
Fields in double quotation marks are interpreted by the compiler and then output as HTML code. The single quotes are output directly without explanation. For example: $ abcmynameistome; echo $ abc: mynameistomecho $ abc: $ abcecho $ abc: mynameistom
Wenku. baidu. comview3e6a238271fe910ef12df806 "what is the difference and usage between single quotes and double quotes ?" Now I will summarize the answer and write it into this short article. Fields in double quotation marks are interpreted by the
"" Fields in double quotation marks are interpreted by the compiler and then output as HTML code.''Is output directly without being interpreted in single quotes.For example:
$ Abc = 'My name is tome '; echo $ ABC // The result is: My name is tomecho'
mysql| Standard | reference | reference Manual | chinese
MySQL Chinese reference manual 6 (MySQL compatibility with the standard)
Reprinted translator: Yan Zi
return 〗〖 Forwarding
Q Translator: Yan Zi (clyan@sohu.com) Homepage:
Introduction: This is a detailed page of the PHP open-source project. It introduces related knowledge, skills, experiences, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 335089
PHP Single-entry mode is now a popular large-scale Web application development model, such as the current more popular PHP development framework, zend,thinkphp,qeephp, and cakephp, and so they are all using the single entry mode. This article will
Php PDO connects to mysql and phppdomysql
Recently, a new environment has been installed in linux, php5.6 + mysql5.5 + nginx. Then, an error occurs when you use the original mysql connection to the database.
The reason is that the database
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.