单引号内部的变量不会执行双引号会执行如$name = ‘hello‘;echo "the $name";会输出 the hello而如果是单引号$name = ‘hello‘;echo ‘the $name‘;会输出 the $name主要区别就是这个了。
PHP中对变量使用单引号和双引号的区别
原文:http://www.cnblogs.com/yeyeyemax/p/6861601.html