php append string
snippet in php

php concat

user8991

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

echo $c; // hello world

php append string

user952

<?php
$a = "Hello ";
$b = $a . "World!"; // now $b contains "Hello World!"

$a = "Hello ";
$a .= "World!";     // now $a contains "Hello World!"
?>

add more data to variable php

user5052

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

php connect strings

user1637

$string3 = $string1 . $string2;