php变量-单引号不编译,双引号编译
<?php header("Content-type:text/html;charset='utf8'"); error_reporting(E_ALL); $sTemp = 'Hello World!<br>'; echo "直接打印输出:".$sTemp; echo "在单引号里打印输出:".'$sTemp'; // 单引号不编译 echo "<br>"; echo "在双引号里打印输出:"."$sTemp"; // 双引号编译
刘华世的官方博客-https://www.pythonschool.com