Strings In Depth1 / 18
Up next

Concatenate with .

<?php
declare(strict_types=1);
$a = "foo";
$b = "bar";
// . joins two strings
$joined = $a . $b;
// .= appends in place
$joined .= "!";
echo $joined, "\n";
What you're solving

the . operator and .= append