Hello,
I want to create a scipt. Can anyone give me a hint on how to convert a <br> tage within my database to a \n white space break?
I want to start using the nl2br function within my scripts but I have to convert all of the old stuff first.
Any coding examples are appreciated!
Thanks!
This function should help
I know about str_replace, BUT what about converting those br's to white space breaks?
I don't want /n's to show up in my DB...just white space breaks.
Let me know what you think!
\n is a special character in PHP. If you use STR_REPLACE() to put \n instead of <BR> then PHP would put in the ASCII line breaks (whitespace) characters, not "\n" literally.
That's what I needed to know!!
Thanks a million!