What is .= doing exactly?
Posted: Wed Oct 02, 2013 3:55 am
Code: Select all
$message .= "<h1>This is headline.</h1>";I don't quite understand what the .= construct is doing. Can anyone help please?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$message .= "<h1>This is headline.</h1>";Code: Select all
$string = "foo" . "bar";
// Same thing
$string = "foo";
$string .= "bar";