egturnkey Posted November 23, 2010 Share Posted November 23, 2010 Hello friends, in my database table or even php files i always find within the text something like this i love people\n i love world\n i love anything and sometimes \r and something \n\r so what does it mean is it like <br> or what ? thanks Quote Link to comment https://forums.phpfreaks.com/topic/219569-fast-question-what-does-it-means-n-and-r/ Share on other sites More sharing options...
revraz Posted November 23, 2010 Share Posted November 23, 2010 Line feeds and carriage return. Quote Link to comment https://forums.phpfreaks.com/topic/219569-fast-question-what-does-it-means-n-and-r/#findComment-1138369 Share on other sites More sharing options...
egturnkey Posted November 23, 2010 Author Share Posted November 23, 2010 Line feeds and carriage return. thank you can you or anyone kindly post to us Reference , i mean where to know all about that line feeds. or only it is \n and \r Quote Link to comment https://forums.phpfreaks.com/topic/219569-fast-question-what-does-it-means-n-and-r/#findComment-1138370 Share on other sites More sharing options...
JonnoTheDev Posted November 23, 2010 Share Posted November 23, 2010 \n is a newline \r is a carraige return \t is a tab Thats it really. They are just for text documents. For instance take a look at: <?php print "<h1>Hello</h1>"; print "<p>This is some text</p>"; ?> Run this code and take a look at 'view source' in your browser. See how the text document displays the HTML. Now run this code and do the same. <?php print "<h1>Hello</h1>\n"; print "<p>This is some text</p>\n"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/219569-fast-question-what-does-it-means-n-and-r/#findComment-1138371 Share on other sites More sharing options...
egturnkey Posted November 23, 2010 Author Share Posted November 23, 2010 thank you so much neil it helps alot Quote Link to comment https://forums.phpfreaks.com/topic/219569-fast-question-what-does-it-means-n-and-r/#findComment-1138376 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.