Hello,
What I need to do is similar to the function nl2br(). Except instead of <br>'s I need to replace the new lines with '\line's
because I'm printing my data to an RTF file and I need to preserve the new lines from the text area data I store in mysql.
I tried using substr_count() to see if I could manually even find any occurances of '\n' or '\r'. But, I found nothing. Is there a special string function I should use to recognize control characters like that?