join strings php code example
Example 1: php connect strings
$string3 = $string1 . $string2;
Example 2: join array of strings php
$arr = array('Hello','World!','Beautiful','Day!');
echo join(",",$arr);
Example 3: how to add two string in php
Remember dot .
Example 4: add more data to variable php
$a = "Hello ";
$a .= "World!";
Example 5: join string php
<?php
$arr = array('Hello','World!','Beautiful','Day!');
echo join(" ",$arr);
?>