php string concat operator code example Example 1: php connect strings $string3 = $string1 . $string2; Example 2: how to add two string in php Remember dot .