Home > Backend Development > PHP Tutorial > 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
Release: 2016-07-13 17:40:10
Original
890 people have browsed it

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...
    source:php.cn
    Statement of this Website
    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
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template