L
luckyouaskhole
Guest
What is the .= used for, in this example: (i got this from the book i'm reading and the book doesn't explain why)
$msg = "E-MAIL SENT FROM WWW SITE\n";
$msg .= "Sender's Name:\t$_POST[sender_name]\n";
$msg .= "Sender's Name:\t$_POST[sender_email]\n";
$msg .= "Sender's Name:\t$_POST[message]\n";
I've noticed that you use the .= for the same variable after the first time it has been defined. Doesn't redefining a variable overwrite the previous value? Or is that what .= does or what?
$msg = "E-MAIL SENT FROM WWW SITE\n";
$msg .= "Sender's Name:\t$_POST[sender_name]\n";
$msg .= "Sender's Name:\t$_POST[sender_email]\n";
$msg .= "Sender's Name:\t$_POST[message]\n";
I've noticed that you use the .= for the same variable after the first time it has been defined. Doesn't redefining a variable overwrite the previous value? Or is that what .= does or what?