Forum Moderators: coopster
Example:
$string1 = "Hello";
$string1 .= " World";
echo $string1;
This would output "Hello World";
Its useful if you need to loop and build string data. If no concatenation is in place, again as sabongio mentioned, it will over write your existing data.
$string1 = "Hello";
$string1 = "World";
echo $string1;
This would output "World";
Hope that helps.
dc
$a=3;
$a *= 5;
echo $a;
> 15
To get the full scoop, read
[docs.php.net...]
It might take you a few times through it for some concepts, but perservere!