Madatan Posted August 10, 2006 Share Posted August 10, 2006 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 Quote Link to comment Share on other sites More sharing options...
xyn Posted August 10, 2006 Share Posted August 10, 2006 Use this: nl2br($variable); Quote Link to comment Share on other sites More sharing options...
Madatan Posted August 10, 2006 Author Share Posted August 10, 2006 Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.