d
Amit DhamuSoftware Engineer
 

Append To Text File

1 minute read 00000 views
$text_file = 'some-text-file.txt';
$append_this = 'My appended sentence';

file_put_contents($text_file, $append_this, FILE_APPEND);