symfony append to file code example Example: symfony append to file file_put_contents($file, $content, FILE_APPEND);