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