Kieran-R Posted October 9, 2010 Share Posted October 9, 2010 I was wondering if someone could tell me how to define a line space in the code. As in my game, when I send a mail, and leave a line space, it doesn't come out as that. It just all comes out on the one line. So how do I make it so that when it comes out, it accualy leaves the line? Thanks. Quote Link to comment Share on other sites More sharing options...
Djkanna Posted October 9, 2010 Share Posted October 9, 2010 nl2br(); Quote Link to comment Share on other sites More sharing options...
Jaaaacccckkk Posted October 9, 2010 Share Posted October 9, 2010 Not quite sure if this is what you mean, but try " " Without the "" E.g Blahh sheep 1 Blahh sheep 2 <!-- Previews Blahh sheep 1 Blahh sheep 2 --> Quote Link to comment Share on other sites More sharing options...
Jaaaacccckkk Posted October 9, 2010 Share Posted October 9, 2010 Nevermind :) Quote Link to comment Share on other sites More sharing options...
Equinox Posted October 9, 2010 Share Posted October 9, 2010 echo ''.nl2br($text).''; ^ Thar. Urgh, Kanna beat me too it. 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.