$txt = "寫入日誌的內容";數組
$log = fopen('./log.txt','a+'); //要寫入的文件,權限根據需求設置數據結構
fwrite($log,var_expost($txt,true)); //寫入文件。var_expost返回數據結構,數組轉字符串post