Hızlı yanıt: kod örneği
You can use a higher-level function like:which is identical to calling fopen(), fwrite(), and fclose() successively to write data to a file.Docs: file_put_contents
file_put_contents($filename, $content);