FUNKAM35 Posted August 29, 2010 Share Posted August 29, 2010 Hi, can you help me please? I have some code written about 5 yrs ago that is for example like this echo"<div class=\"select\">"; echo"<br /><br />\n"; echo"</div>\n"; echo"</div>\n"; echo "<p><b>$address</b></p>\n"; Does it make any difference at all if I amended it to echo"<div class=\"select\"><br /><br /></div></div><p><b>$address</b></p>"; ie coding errors or increase load time? also when should I use \n"; or "; Please forgive my ignorance but I am a self taught php writer and have managed to teach myself but just need a little help. Cheers Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted August 29, 2010 Share Posted August 29, 2010 You can make it all one string with no issues at all. You can put a \n in at any point you want a new line in the html source, to make it so if you 'view source' in the browser, it isn't one ginormous wall of markup. Quote Link to comment Share on other sites More sharing options...
FUNKAM35 Posted August 29, 2010 Author Share Posted August 29, 2010 wow that was fast thank you so much, just got a lot of code and trying to minimise it and sirt it all out. brilliant thanks again 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.