user63898
0
Q:

php append string

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

echo $c; // hello world
4
<?php
$a = "Hello ";
$b = $a . "World!"; // now $b contains "Hello World!"

$a = "Hello ";
$a .= "World!";     // now $a contains "Hello World!"
?>
3
$a = "Hello ";
$a .= "World!";   
1
$string3 = $string1 . $string2;
0

New to Communities?

Join the community