如何在PHP中连接字符串

use*_*601 24 php loops

我想这样做:

$string = "";
$string += "lol"; //maybe =+  > tried but both not working
Run Code Online (Sandbox Code Playgroud)

但它不起作用,有人建议吗?谷歌并没有让我的生活轻松(无法搜索像=或+这样的字符)

Mar*_*c B 66

在PHP中,字符串连接是通过.运算符完成的:

$string .= 'lol';
Run Code Online (Sandbox Code Playgroud)

+ 是为了补充.