str_replace("n\", "<br\>")
Notice the parse error now?
By the way, the escape sequences are formed with the backslash in the beginning - see this section in the PHP manual (or the equivalent section in just about any other C-like language - it's a fairly standard string notation).