1

这行代码我不断收到这个语法错误。

$subject = 'Message - General Inquiry from '.$field_name' with the email of '.$field_email;

有人可以帮忙吗?

4

2 回答 2

4
$subject = 'Message - General Inquiry from '.$field_name.' with the email of '.$field_email;
于 2013-10-14T03:52:45.377 回答
1

.$field_name. 另一方面,如果您只使用插值,则不必担心.运算符:

$subject = "Message - General Inquiry from $field_name with the email of $field_email";
于 2013-10-14T03:52:37.493 回答