More and more open-source programs (PHP and Javascript) are using single quotes when processing strings. Why not use double quotation marks? What is the difference between the two? More and more open-source programs (PHP and Javascript) are using
Town Field Poem:The Pure Heart sentiment wisdom language, does not have the world name and the benefit. Learn water under the hundred rivers, give up arrogant slow meaning.Learn to have a small return to feed root, willing to cast a conscience blog.
Double quotation marks cannot be nested in double quotes, or a pair of double quotes will end.Nested double quotation marks in Java need to be escaped:Public class test{ public static void main (String[] args) { string str1 = "\
This article briefly introduces the differences between Single and Double quotation marks in php and compares the differences between Single and Double quotation marks in javascript. This makes it easier for us to better understand and practical. We
This article briefly introduces the differences between single and double quotation marks in php and compares the differences between single and double quotation marks in javascript, so that we can better understand and use them. we recommend that
This article briefly introduces the differences between single and double quotation marks in php and compares the differences between single and double quotation marks in javascript, so that we can better understand and use them. we recommend that
In PHP, you can use single quotes or double quotation marks ;". In PHP, you can use single quotation marks ''or double quotation marks" "to define strings "".
However, the same single or double quotation marks must be used to define strings. for
Recently using JavaScript programming, encountering the use of strings
Wrote a little bit of test code
var str = ' This is Jack ';
var str2 = "This is Tom";
var str3 = ' This is ' Rose ';
var STR4 = "This is ' LiLi '
Whether you are writing JavaScript or PHP, you are always accustomed to using single quotes. But the weekend at home coding encounter a problem, you need to filter the string by PHP line breaks, follow the following method:
$out = str_replace (Array
In PHP, the definition of a string can be in English single quotes ', or you can use double quotes in English.
But you must use the same single or double quotes to define strings, such as ' Hello World ' and ' Hello World ' for illegal string
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.