php 手册学习 php '{$a}'

$a = "sss";

echo "{$a}tttt";  //ssstttt;

echo '{$a}ttt'; //{a}ttt;

双引号中的变量可以解析,单引号就是绝对的字符串。
原文地址:https://www.cnblogs.com/gaogaoxingxing/p/11209234.html