Discover single quotes inside double quotes, include the articles, news, trends, analysis and practical advice about single quotes inside double quotes on alibabacloud.com
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
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
http://blog.csdn.net/woainishifu/article/details/76105667Single and double quotation marksIn Python we all know that both single and double quotes can be used to represent a string, such as
str1 = ' python '
str2 = "Python"
There
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
Let's talk about the difference between single and double quotation marks in PHP and the difference between php double quotation marks. Let's talk about the difference between single and double quotation marks in PHP. in php, you can use single
One, the quotation mark defines the stringIn PHP, typically a string is defined in a pair of quotation marks, such as:' I am a string in single quotes '"I am a string in double quotes" The PHP parser uses pairs of quotes to determine a string.
The difference between single quotes and double quotes in PHP is described in detail. The article details the differences between single quotes and double quotes in PHP. For more information, see. 1. define a string in PHP. The definition of a
"" 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'
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.