php 변수내용 text 저장

  1. $results = "results.txt";
  2. $resultsLink = fopen($results, 'a');
  3. $fileParagraph = $paragraph;
  4. fwrite($resultsLink, $fileParagraph);
  5. fclose($resultsLink);

file_put_contents($results, $fileParagraph, FILE_APPEND);