Write the content to a file in PHP
We can write the contents to the file using fopen() function in PHP .fopen in write mode opens the file to write the content to file
We can write the contents to the file using fopen() function in PHP .fopen in write mode opens the file to write the content to file
$fw = fopen('test.html', "w");
fwrite($fw, $s);
fclose($fw);
Comments
Post a Comment