The difference between single quotes and double quotes in php is very important in programming languages, both single quotes and double quotes. PHP quotes are easier to use than ASP quotes. in ASP, to substitute data into a variable, you must use
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
"" 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'
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
SQL double quotes and single quotes
Delimiters are used only for identifiers. Delimiters cannot be used for keywords, regardless of whether they are marked as reserved words in SQL Server.Quoted identifiers are separated by double quotation marks ("
The difference between single quotation marks and double quotes in PHP
In a programming language, both single and double quotes are important, as is the case in the PHP language. Compared to ASP, PHP quotation marks better use, in ASP, to put the
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
1. Define String
In PHP, a string can be defined using single quotes or double quotes. However, you must use the same single or double quotes to define the string, such as: ' Hello ' and ' hello ' are illegal string definitions.
When you define
Php syntax is divided into single quotes, double quotation marks? This post was last edited by u011523116 on 20:12:13
// A. php
1. a. php: both statements are correct. why?
Does the php language distinguish between single quotes and
First of all, in the bash script, there are three kinds of quotes
1. Single quotes '2. Double quotes "3. Inverted quotes '
Single quotation markThe two string enclosed in single quotes is an ordinary string that retains its original literal
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.