php += .= 什么意思
2022-12-02 09:01:16
78
{{single.collect_count}}

php中+=符号相当于加号运算符,表示两个变量相加,语法是“x += y”即“x = x + y”;php中.=符号表示连接两个字符串,语法是“a .= b”即“a = a . b”。

php入门到就业线上直播课:进入学习
Apipost = Postman + Swagger + Mock + Jmeter 超好用的API调试工具:点击使用

本文操作环境:Windows7系统、PHP7.1、Dell G3电脑。

php += .= 什么意思?

看一下式子:

  • x += y 相当于 x = x + y,表示 加;

  • a .= b 相当于 a = a . b,表示连接两个字符串。

860c65fd67d0f9b14da405e1b3db898.png

推荐学习:《PHP视频教程

以上就是php += .= 什么意思的详细内容,更多请关注php中文网其它相关文章!

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}