PHP字符串解析错误与变量后必要的分号

Spe*_*May 4 php string

在我的PHP代码中,我有一个变量$message,其中包含要发送给我的消息,其中包含post变量.它应该在结尾处有一个分号......但它给我一个错误,说它是意外的,但我知道我需要它,因为没有它就不会工作.我完全失去了.希望有人在这里可以帮助我.

错误信息:

PHP Parse error:  syntax error, unexpected ';'
Run Code Online (Sandbox Code Playgroud)

PHP代码

if(!empty($_POST["name"]) && !empty($_POST["address"]) && !empty($_POST["city"]) && !empty($_POST["phone"]) && !empty($_POST["email"]) && !empty($_POST["type"]))
{
$message = "Name:" . $_POST["name"] . 
"Address:" . $_POST["address"] . 
"City:" . $_POST["city"] . 
"State:" . $_POST["state"] . 
"Zip Code:" . $_POST["zip"] . 
"Phone:" . $_POST["phone"] . 
"Email:" . $_POST["email"] . 
"Current Roof Type:" . $_POST["type"] . 
"Roof Age:" . $_POST["age"] .
"Is it leaking?:" . $_POST["leak"] . 
"Does it have hail damage?:" . $_POST["hail"] . 
"Insurance:" . $_POST["insurance"] . 
"Additional Comments:" . $_POST["extra"] . 
;                                          <---------------####Unexpected semicolon
$to = "emailasdasdasdasd";
$subject = "Free Estimate";
$from = "Guarantee Roofing";
$headers = "From:" . $_POST["name"];
mail($to,$subject,$message,$headers);
}
Run Code Online (Sandbox Code Playgroud)

Ani*_*han 5

"Additional Comments:" . $_POST["extra"] .  
                                         ^
Run Code Online (Sandbox Code Playgroud)

不必要的连接运算符-----------------这里.

PHP期望串联运算符旁边的字符串/变量,并找到分号,这是报告意外的.