php基础--连接运算符

来源:互联网 发布:东京八分钟 知乎 编辑:程序博客网 时间:2024/06/06 03:55

连接运算符

在php中将两个字符串拼接在一起用(.)

<?php $txt1 = "Hello";$txt2 = "World!";$txt3 = $txt1.$txt2;$txt4 = $txt1.",".$txt2;echo $txt3;echo "<br>";echo $txt4;?>
原创粉丝点击