x
 
<!DOCTYPE html>
<html>
<body>
<?php
$x = "转义 PHP 变量名 \$myvar";
echo $x;
?> 
</body>
</html>