字符串运算符(。和。)
只有两个字符串运算符:
-
两个字符串(点)的连接:
$a = "a"; $b = "b"; $c = $a . $b; // $c => "ab"
-
连接赋值(dot =):
$a = "a"; $a .= "b"; // $a => "ab"
只有两个字符串运算符:
两个字符串(点)的连接:
$a = "a";
$b = "b";
$c = $a . $b; // $c => "ab"
连接赋值(dot =):
$a = "a";
$a .= "b"; // $a => "ab"