$string.= 是什么意思

来源:2-14 选择题

昵称加载中__

2019-10-08 15:19:10

.=是什么意思     

写回答

1回答

好帮手慕查理

2019-10-08

您好,可以理解为字符串拼接的意思。

例如:

    http://img.mukewang.com/climg/5d9c461709a8773d02630183.jpg

结果为imooc.com。

$string .= ".com"; 可以理解为:$string = $string.".com";

$string的值为imooc,.=会拼接字符串.com,然后再将值赋值给$string,所以结果为:imooc.com。

祝学习愉快!

0

0 学习 · 4928 问题

查看课程