Code has been added to clipboard!

Add Data With PHP fwrite

Example

<?php
 $newfile = fopen("textfile.txt", "w");
 $str = "random text";
 fwrite($newfile, $str);
 fclose($newfile);
?>