I’m busy with a PHP project that has to work in different languages, so I made a system with strings that are read from files, but when I want to read a file like this:
Username/ \n password wrong
It shows the \n instead of escaping it to a newline. How can I let PHP do this?
Thans already,
DirkWillem
consider using a suitable storage format instead of something you created yourself. base64_encode(), or json_encode() would be good candidates.
But, to address your immediate problem, just use str_replace()