graham23s Posted January 11, 2008 Share Posted January 11, 2008 Hi Guys, i was looking through the source code of a few scripts i downloaded, to learn from the code.i can now read it a lot better than i used to but 1 thing i'm not sure on: else print("yes"); print("</td>\n"); after every <table><tr> or <td> they do a \n, for a new line, but is there any reason why you would need to do a \n after each table tag? thanks for any info Graham Link to comment https://forums.phpfreaks.com/topic/85583-solved-question-on-n-command/ Share on other sites More sharing options...
GingerRobot Posted January 11, 2008 Share Posted January 11, 2008 Not particularly - it just makes the generated HTML more readable. Link to comment https://forums.phpfreaks.com/topic/85583-solved-question-on-n-command/#findComment-436735 Share on other sites More sharing options...
p2grace Posted January 11, 2008 Share Posted January 11, 2008 Basically when you view the source of that document there will be a line break at each "\n", but it only affects the source code. Link to comment https://forums.phpfreaks.com/topic/85583-solved-question-on-n-command/#findComment-436744 Share on other sites More sharing options...
graham23s Posted January 11, 2008 Author Share Posted January 11, 2008 ah so it's more a preference than a necessity , thanks guys Graham Link to comment https://forums.phpfreaks.com/topic/85583-solved-question-on-n-command/#findComment-436783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.