In PHP, strings are concatenated together as follows:
$foo = \"Hello\"; $foo .= \" World\";
Here, $foo becomes \"Hello World\"
$foo
Bash also supports a += operator as shown in this code:
+=
A="X Y" A+=" Z" echo "$A"
output
X Y Z