php 创建文件

$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
$txt = "Bill Gates
";
fwrite($myfile, $txt);
$txt = "Steve Jobs
";
fwrite($myfile, $txt);
fclose($myfile);
原文地址:https://www.cnblogs.com/-mrl/p/5970613.html