how to add two string in php
snippet in php

php concat

user5637

$a = "hello";
$b = "world";
$c = $a . " " . $b;

echo $c; // hello world

how to add two string in php

user159

Remember dot .

add more data to variable php

user634

$a = "Hello ";
$a .= "World!";   

join string php

user576

<?php
$arr = array('Hello','World!','Beautiful','Day!');
echo join(" ",$arr);
?>