str_replace_all_in_file function

Replace all occurences of a pattern in a file