php代码里面可以通过echo、print输出内容,其中,echo可以以此输出多个内容,用逗号隔开,print只能输出一个内容。print的功能和echo几乎一样,一般很少有人用print。但是对于数组等复合变量,print_r 用的多
<html>
<head></head>
<body>
<pre>
<?php
$txt1 = "Hello";
$txt2 = "World";
$txt3 = "!";
echo $txt1 . " " . $txt2 . $txt3;
echo $txt1, $txt2, $txt3;
echo ($txt1);
?>
</pre>
</body>
</html>