Code has been added to clipboard!

PHP fopen and fwrite Functions

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