$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);
$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);