字串運算子(。和。)
只有兩個字串運算子:
-
兩個字串(點)的連線:
$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"