Home >Backend Development >PHP Tutorial >php . and .=
.String concatenation
.=String concatenation assignment
Source code:
$a = "z21";
$b = $a . "seven";
echo $b;
echo "
";
$c = "z21";
$c .="seven"; // $ c=$c+"seven"
echo $c;
?>
Output:
z21seven
z21seven
The above introduces php . and .=, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.