Chat Posted July 28, 2006 Share Posted July 28, 2006 Is there anything technically wrong with this code:[code]<?phpecho "<!-- BEGIN SECTION --><div><a href=\"#\"></a></div><!-- END SECTION -->";?>[/code]I just found that when I added \n to the end of each line, I was getting two line breaks between each line in the HTML source code, so I took the \n away from every line. Is there anything wrong with leaving the echo over several lines like this? Quote Link to comment https://forums.phpfreaks.com/topic/15880-echo-function-can-it-be-over-several-lines/ Share on other sites More sharing options...
XeroXer Posted July 28, 2006 Share Posted July 28, 2006 not that I can see.If you read the explanation of echo you can see an example:[code]<?phpecho "This spansmultiple lines. The newlines will beoutput as well";?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/15880-echo-function-can-it-be-over-several-lines/#findComment-65125 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.