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 $fw = fopen('test.html', "w"); fwrite($fw, $s); fclose($fw);
This blog is about solutions for PHP,Python,JavaScript,j query,HTML,CSS and Ubuntu.