The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
'. I've tried doing a str_replace() looking for '\n' and '\r\n', but to no avail, it doesn't do anything. I know there's the nl2br() function designed specifically for this purpose but I'm being awkward, and can't really see why my str_replace() isn't working...
I'm getting the string from a
Cheers!
> '\n' and '\r\n'
Make sure you're using "\n" and "\r\n", if you use single quotes then PHP wont parse the string and interpret them as the correct characters.
And I never use nl2br() either so I guess I'm awkward too. :)
'. I've tried doing a str_replace() looking for '\n' and '\r\n', but to no avail, it doesn't do anything. I know there's the nl2br() function designed specifically for this purpose but I'm being awkward, and can't really see why my str_replace() isn't working...
I'm getting the string from a