Generation

generate functionThu, 25 May 2023

вставить значение переменной в файл test.txt

function writeToFile($fileName, $text){ $file = "test.txt"; $handle = fopen($file, 'w') or die('Cannot open file: '.$file); //implicitly creates file fwrite($handle, $text); }

Questions about programming?Chat with your personal AI assistant