Answers for "string to file php"

PHP
9

write to file php

$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
fwrite($myfile, "Content to write to file");
fclose($myfile);
Posted by: Guest on October-22-2020
0

turn text file to string php

$fileContent = file_get_contents($url);
Posted by: Guest on March-20-2020

Browse Popular Code Answers by Language