代码示例:(标识:demo_php_var1)
<!doctype html>
<html>
<body>

<?php
$x=5;
$y=6;
$z=$x+$y;
echo $z;
?>

</body>
</html>
运行结果: