PHP中单引号与双引号的区别

例子如下:

$str='hello';

echo "str is $str"; //运行结果: str is hello
echo 'str is $str'; //运行结果: str is $str

猜你喜欢

转载自blog.csdn.net/qq_40750454/article/details/80308466