Appends the content to the specified file if it exists (if the file does not exist, the function creates the file and writes the content)
file_put_contents($filePath, $content, FILE_APPEND);
Note: if
FILE_APPEND
parameter is not passed, the function overwrites the content.
by Valeri Tandilashvili
4 years ago
PHP
functions
3
Pro tip: use ```triple backticks around text``` to write in code fences