📜  php 将行追加到文件 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:35.781000             🧑  作者: Mango

代码示例3
$log_content="This line is logged on 2020-08-14 09:55:00";
$myfile = fopen("log.txt", "a") or die("Unable to open file!");
fwrite($myfile, $log_content);
fclose($myfile);