Concatenation operator ('.') : String Concatenation « String « PHP
- PHP
- String
- String Concatenation
Concatenation operator ('.')
<?
$a = "Hello ";
$b = $a . "World!"; // now $b contains "Hello World!"
$a = "Hello ";
$a .= "World!"; // now $a contains "Hello World!"
?>
Related examples in the same category