Jump to content

Archived

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

Madatan

Formatted text

Recommended Posts

Okey, so I got a news-system with an admin area and all that, now I just want the news system to format the text a little bit by itself. So if I write:

Hello my name is George!

Good bye!

I dont want to have to add the two [code]<br><br>[/code] to make it a new row and another row between the two sentences. Anyone following? :P

Share this post


Link to post
Share on other sites
Use this: nl2br($variable);

Share this post


Link to post
Share on other sites

×

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.