如何打开文本文件并用php写出附加样式?
2022-08-30 20:29:22
如何打开文本文件并使用php appendstyle写入它
textFile.txt
//caught these variables
$var1 = $_POST['string1'];
$var2 = $_POST['string2'];
$var3 = $_POST['string3'];
$handle = fopen("textFile.txt", "w");
fwrite = ("%s %s %s\n", $var1, $var2, $var3, handle);//not the way to append to textfile
fclose($handle);