<分区>
我知道有很多关于此的文档,但是这一行代码花了我很长时间才在一个 4000 行的文件中找到,我想第一次尝试就把它弄好。
file_put_contents($myFile,serialize(array($email_number,$email_address))) or die("can't open file");
if ($address != "email@domain.com") {
$email['headers'] = array('CC' => 'email@domain.com');
}
}
在这个 if 语句之后我基本上想添加
'BCC' => 'another_email@domain.com'
进入 $email['headers']
数组(因此无论 if 是否为真,它都会添加它)