merge two string in php code example
Example 1: php connect strings
$string3 = $string1 . $string2;
Example 2: php append string
<?php
$a = "Hello ";
$b = $a . "World!"; // now $b contains "Hello World!"
$a = "Hello ";
$a .= "World!"; // now $a contains "Hello World!"
?>
Example 3: how to add two string in php
Remember dot .