PHP字符串连接

PHP字符串连接

在字符串之间加 .
"hi, " . "xxx"

<html>
<body>
<?php
$string="hello" . "hi";
//在这里定义了string变量,并赋值
//现在string的值是"hellohi"
//注意要加分号,和Python不同
?>
</body>
</html>
发布了9 篇原创文章 · 获赞 2 · 访问量 133

猜你喜欢

转载自blog.csdn.net/twxwjh/article/details/105658044
今日推荐