Jump to content

[SOLVED] seperate \n into <br>


busnut

Recommended Posts

I've got a field with information and each time its added, it adds a new line by placing \n to the information thats being recorded in the database, however, what im wanting to know is, how can i display this info without using a <textarea> so the information will be on each line?

 

ie, the field has info like this : abc 123\n def 456\n ghi 987\n

and i want the output like this:

abc 123

def 456

ghi 987

but all i can get is:

abc 123 def 456 ghi 987

Link to comment
https://forums.phpfreaks.com/topic/155599-solved-seperate-n-into/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.