- PHP7实践指南:O2O网站与App后台开发
- 陈小龙
- 40字
- 2020-11-28 17:52:18
5.2 字符串连接符
PHP中使用“.”来连接两个字符串。示例如下:
<? php $str1 = 'hello'; $str2 = 'world'; echo $str1 . $str2; ?>
以上程序的打印结果为:
helloworld
PHP中使用“.”来连接两个字符串。示例如下:
<? php $str1 = 'hello'; $str2 = 'world'; echo $str1 . $str2; ?>
以上程序的打印结果为:
helloworld