单引号内部的变量不会执行 双引号会执行 如 $name = 'hello'; echo "the $name"; 会输出 the hello 而如果是单引号 $name = 'hello'; echo 'the $name'; 会输出 the $name
PHP中单引号和双引号到底有啥区别
最新推荐文章于 2022-09-13 11:24:39 发布
单引号内部的变量不会执行 双引号会执行 如 $name = 'hello'; echo "the $name"; 会输出 the hello 而如果是单引号 $name = 'hello'; echo 'the $name'; 会输出 the $name