php 字符串不想输出变量怎么办? 反斜杠!

<?php
$v1 = 8;

echo "$v1的值是 $v1"; 加了反斜杠之后就破除了$的效果 直接输出$v1
 
?>
原文地址:https://www.cnblogs.com/xm666/p/11143658.html