Home  >  Article  >  Backend Development  >  The difference between single quotes and double quotes in php_PHP tutorial

The difference between single quotes and double quotes in php_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:40:10830browse

Developers often use single quotes and double quotes, but they are not very clear about which one to use. Let’s talk about the “difference between single quotes and double quotes”.

” ” Fields enclosed in double quotes will be interpreted by the compiler and then output as HTML code.

‘ ‘ The words in the single quotes are not interpreted and are output directly.

Both single quotes and double quotes have their own uses.

The content in single quotes will not be parsed, which is more efficient.

  • Source: Programming Home
  • www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/486227.htmlTechArticleDevelopers often use single quotation marks and double quotation marks, but it is not very clear when choosing which one to use. The following is Let’s talk about “the difference between single quotes and double quotes”. ” ” Fields inside double quotes will...
    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn