A Function Called file_append_contents()

no-email (Damien Seguy), Damien Seguy
Sun, 04 Feb 2024 00:00:00 +0000

file_put_contents() can append data to the end of the file, with the ``FILE_APPEND`` option.
file_put_contents() keeps the file opened as little as possible, and the operation is atomic. It is better then overwriting the whole file; and it is often better than fopen(), which keeps the file open until the end of the execution.