I want to replace certain strings with another one in a text file (ex: \\nH with ,H). Is there any way to that using PHP?
\\nH
,H
file_get_contents() then str_replace() and put back the modified string with file_put_contents() (pretty much what Josh said)
file_get_contents()
str_replace()
file_put_contents()