$txt = "写入日志的内容";数组
$log = fopen('./log.txt','a+'); //要写入的文件,权限根据需求设置数据结构
fwrite($log,var_expost($txt,true)); //写入文件。var_expost返回数据结构,数组转字符串post