A simple php program to merge the array elements into a string. By using this program we can print merge the array elements into string. To force something to come together or consolidate; unify to progressively merge, blend, or unite so that the individuality or individual identity of: They decided to combine the two branch offices into one.
$arr = array("welcome", "to", "inlarn");
echo join(" ",$arr);
welcome to inlarn
What is array and how it useful
What is string in php program
The term “string” refers to a group of characters. PHP supports a number of data types, including strings. Alphanumeric characters are allowed in string variables. When you generate a string, you can use it straight with the echo statement in PHP.