: This article mainly introduces the difference between single quotes and double quotes in PHP. For more information about PHP tutorials, see. Difference between single quotes and double quotes in PHP
1. transfer character
Single quotes
Output result ', \, \ n, \ t, \ r ,...
Double quotation marks
Output result :",\,,,,...
2. variable parsing
Variables can be parsed using double quotation marks. variables cannot be parsed using single quotation marks.
'Echo "the value of a is $ a";?> Output result: the value of a is $ aa and the value is 10.
3. execution speed
The execution speed of single quotes is faster than that of double quotes.
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above introduces the difference between single quotes and double quotes in PHP, including some content. I hope to be helpful to anyone interested in PHP tutorials.