Variables inside single quotes will not be executed, but double quotes will.
For example,
$name = hello;
echo "the $name";
will output the hello
and if it is a single quote
$name = hello ;
echo the $name;
will output the $name
The main difference is this.
http://www.bkjia.com/PHPjc/486094.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/486094.htmlTechArticleVariables inside single quotes will not be executed, but double quotes will. For example, $name = hello; echo "the $name"; will output the hello, and if it is a single quote, $name = hello; echo the $name; will output...
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