php concatenate variables if they exist code example
Example 1: php concat
$a = "hello";
$b = "world";
$c = $a . " " . $b;
echo $c; // hello world
Example 2: php concatenate two variables
$string = "the color is ";
$string .= "red";
echo $string; // gives: the color is red